[chore](topn opt) disable two phase read when light schema change is disabled (#21809)

This commit is contained in:
lihangyu
2023-07-17 12:46:28 +08:00
committed by GitHub
parent 03b575842d
commit 1101d7d947

View File

@ -758,6 +758,9 @@ public class SelectStmt extends QueryStmt {
LOG.debug("only support duplicate key or MOW model");
return false;
}
if (!olapTable.getEnableLightSchemaChange()) {
return false;
}
if (getOrderByElements() != null) {
if (!evaluateOrderBy) {
// Need evaluate orderby, if sort node was eliminated then this optmization