Skip to content

Commit

Permalink
filter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Jan 7, 2025
1 parent a74f3ad commit 46a6653
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public List<Rule> buildRules() {

private LogicalFilter<Plan> rewriteFilterExpression(LogicalFilter<Plan> filter) {
Expression rewritten = OrToIn.EXTRACT_MODE_INSTANCE.rewriteTree(filter.getPredicate());
Set<Expression> set = new LinkedHashSet<>();
set.add(rewritten);
Set<Expression> set = new LinkedHashSet<>(ExpressionUtils.extractConjunction(rewritten));
return filter.withConjuncts(set);
}

Expand Down

0 comments on commit 46a6653

Please sign in to comment.