Skip to content

Commit

Permalink
1<col and col <10 seem as 1<=col and col <=10
Browse files Browse the repository at this point in the history
  • Loading branch information
junwen12221 committed May 23, 2022
1 parent 00a1449 commit 9345d16
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,13 @@ public static List<Partition> getPartitions(CustomRuleFunction customRuleFunctio
bigOne = rangeQueryUpperKey.get(rangeQueryUpperKey.size() - 1);
}
Map<String, RangeVariable> map = new HashMap<>();
if (smallOne != null && bigOne != null &&
rangeQueryUpperOp == ComparisonOperator.LTE && rangeQueryLowerOp == ComparisonOperator.GTE) {
for (String indexColumnName : condition.getIndexColumnNames()) {
RangeVariable rangeVariable = new RangeVariable(indexColumnName, RangeVariableType.RANGE, smallOne, bigOne);
map.put(indexColumnName, rangeVariable);
}
if (smallOne != null && bigOne != null) {
if (rangeQueryUpperOp == ComparisonOperator.LTE && rangeQueryLowerOp == ComparisonOperator.GTE ||
rangeQueryUpperOp == ComparisonOperator.LT && rangeQueryLowerOp == ComparisonOperator.GT)
for (String indexColumnName : condition.getIndexColumnNames()) {
RangeVariable rangeVariable = new RangeVariable(indexColumnName, RangeVariableType.RANGE, smallOne, bigOne);
map.put(indexColumnName, rangeVariable);
}
} else if (smallOne != null) {
RangeVariableType type = null;
if (rangeQueryUpperOp == ComparisonOperator.LT) {
Expand Down

0 comments on commit 9345d16

Please sign in to comment.