Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
ilicmarkodb committed Oct 2, 2024
1 parent a2bc7cb commit d443bd5
Showing 1 changed file with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,17 +491,9 @@ private static Optional<DataSkippingPredicate> constructNotDataSkippingFilters(
new DefaultDataSkippingPredicate(
"OR",
constructCollatedComparatorDataSkippingFilters(
"<",
leftCol,
rightLit,
schemaHelper,
collationIdentifier),
"<", leftCol, rightLit, schemaHelper, collationIdentifier),
constructCollatedComparatorDataSkippingFilters(
">",
leftCol,
rightLit,
schemaHelper,
collationIdentifier)));
">", leftCol, rightLit, schemaHelper, collationIdentifier)));
}

if (schemaHelper.isSkippingEligibleMinMaxColumn(leftCol)
Expand All @@ -520,11 +512,11 @@ private static Optional<DataSkippingPredicate> constructNotDataSkippingFilters(
} else if (right instanceof Column && left instanceof Literal) {
Predicate reversed = new Predicate("=", right, left);
if (childPredicate instanceof CollatedPredicate) {
CollationIdentifier collationIdentifier = ((CollatedPredicate) childPredicate).getCollationIdentifier();
CollationIdentifier collationIdentifier =
((CollatedPredicate) childPredicate).getCollationIdentifier();
reversed = new CollatedPredicate("=", right, left, collationIdentifier);
}
return constructDataSkippingFilter(
new Predicate("NOT", reversed), schemaHelper);
return constructDataSkippingFilter(new Predicate("NOT", reversed), schemaHelper);
}
break;
case "<":
Expand Down

0 comments on commit d443bd5

Please sign in to comment.