Skip to content

Commit

Permalink
Flatten nested IFs
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Mar 24, 2022
1 parent b4331b8 commit ac028af
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,12 @@ private static SplitExpression splitExpression(PlannerContext plannerContext, Ex
// dynamic filters have no meaning for connectors, so don't pass them
dynamicFilters.add(conjunct);
}
else if (isDeterministic(conjunct, metadata)) {
deterministicPredicates.add(conjunct);
}
else {
if (isDeterministic(conjunct, metadata)) {
deterministicPredicates.add(conjunct);
}
else {
// don't include non-deterministic predicates
nonDeterministicPredicate.add(conjunct);
}
// don't include non-deterministic predicates
nonDeterministicPredicate.add(conjunct);
}
}

Expand Down

0 comments on commit ac028af

Please sign in to comment.