This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git

commit c865daee0866a2d8222f687fc82e4e29db0e7c9f
Author: lihangyu <[email protected]>
AuthorDate: Mon Jul 17 12:46:28 2023 +0800

    [chore](topn opt) disable two phase read when light schema change is 
disabled (#21809)
---
 fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
index 468fd07284..e2ce149c4d 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
@@ -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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to