[Fix](point query) Not allow subquery for point query optimization (#25085)
This commit is contained in:
@ -2622,6 +2622,10 @@ public class SelectStmt extends QueryStmt {
|
||||
if (tbl.getTable().getType() != Table.TableType.OLAP) {
|
||||
return false;
|
||||
}
|
||||
// ensure no sub query
|
||||
if (!analyzer.isRootAnalyzer()) {
|
||||
return false;
|
||||
}
|
||||
OlapTable olapTable = (OlapTable) tbl.getTable();
|
||||
Preconditions.checkNotNull(eqPredicates);
|
||||
eqPredicates = getExpectedBinaryPredicates(eqPredicates, whereClause, TExprOpcode.EQ);
|
||||
|
||||
Reference in New Issue
Block a user