Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class FoldConstantRule implements ExpressionPatternRuleFactory {
public static final FoldConstantRule INSTANCE = new FoldConstantRule();

private static final ExpressionBottomUpRewriter FULL_FOLD_REWRITER = ExpressionRewrite.bottomUp(
FoldConstantRuleOnFE.VISITOR_INSTANCE,
FoldConstantRuleOnFE.PATTERN_MATCH_INSTANCE,
FoldConstantRuleOnBE.INSTANCE
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,6 @@ public Expression visitCaseWhen(CaseWhen caseWhen, ExpressionRewriteContext cont
Expression defaultResult = null;
if (caseWhen.getDefaultValue().isPresent()) {
defaultResult = caseWhen.getDefaultValue().get();
if (deepRewrite) {
defaultResult = rewrite(defaultResult, context);
}
}
if (foundNewDefault) {
defaultResult = newDefault;
Expand Down
Loading