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

yiguolei pushed a commit to branch 2.1-tmp
in repository https://gitbox.apache.org/repos/asf/doris.git

commit b8d4a8770337c0637ba92e9eca30372b72b79309
Author: morrySnow <[email protected]>
AuthorDate: Sun Apr 7 15:33:21 2024 +0800

    [chore](Nereids) load command always could fallback (#33233)
---
 .../java/org/apache/doris/nereids/trees/plans/commands/LoadCommand.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/LoadCommand.java
 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/LoadCommand.java
index 45c96bd742a..1963b2efc23 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/LoadCommand.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/LoadCommand.java
@@ -125,6 +125,7 @@ public class LoadCommand extends Command implements 
ForwardWithSync {
     @Override
     public void run(ConnectContext ctx, StmtExecutor executor) throws 
Exception {
         if (!Config.enable_nereids_load) {
+            ctx.getSessionVariable().enableFallbackToOriginalPlannerOnce();
             throw new AnalysisException("Fallback to legacy planner 
temporary.");
         }
         this.profile = new Profile("Query", 
ctx.getSessionVariable().enableProfile,


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

Reply via email to