Queries like `select * from tbl` will pass `LogicalResultSinkToShortCircuitPointQuery` rule in the previous. Introduced by #35823
This commit is contained in:
@ -74,7 +74,10 @@ public class LogicalResultSinkToShortCircuitPointQuery implements RewriteRuleFac
|
||||
// All key columns in conjuncts
|
||||
Set<String> colNames = Sets.newHashSet();
|
||||
for (Expression expr : conjuncts) {
|
||||
colNames.add(((SlotReference) removeCast((expr.child(0)))).getName());
|
||||
SlotReference slot = ((SlotReference) removeCast((expr.child(0))));
|
||||
if (slot.isKeyColumnFromTable()) {
|
||||
colNames.add(slot.getName());
|
||||
}
|
||||
}
|
||||
// set short circuit flag and modify nothing to the plan
|
||||
if (olapTable.getBaseSchemaKeyColumns().size() <= colNames.size()) {
|
||||
|
||||
Reference in New Issue
Block a user