Skip to content

Commit 5b33259

Browse files
guojn1githubgxll
authored andcommitted
[fix][dingo-calcite] Fix bug of use index (#1436)
1 parent 22f2ab0 commit 5b33259

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dingo-calcite/src/main/java/io/dingodb/calcite/rule/IndexCompareFilterAggrRule.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ public void onMatch(RelOptRuleCall call) {
7474
return;
7575
}
7676
TandemPipeCacheOp tandemPipeCacheOp = (TandemPipeCacheOp) dingoScanWithRelOp.getRelOp();
77+
if (!(tandemPipeCacheOp.getInput() instanceof FilterOp)) {
78+
return;
79+
}
7780
FilterOp filterOp = (FilterOp) tandemPipeCacheOp.getInput();
7881
IndexTable indexTable;
7982
if (filterOp.getFilter() instanceof BinaryOpExpr) {

0 commit comments

Comments
 (0)