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

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


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new c1e3c9561cb branch-3.1: [enhancemment](planner)check sql regex block 
rule before plan phase #57477 (#57706)
c1e3c9561cb is described below

commit c1e3c9561cb7a6cd25625cdf4c627f37ab650209
Author: starocean999 <[email protected]>
AuthorDate: Fri Nov 7 15:34:02 2025 +0800

    branch-3.1: [enhancemment](planner)check sql regex block rule before plan 
phase #57477 (#57706)
    
    picked from #57477
---
 fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
index d9ccfbe7650..a4c49411c92 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
@@ -854,8 +854,9 @@ public class StmtExecutor {
             syncJournalIfNeeded();
             planner = new NereidsPlanner(statementContext);
             try {
+                checkBlockRulesByRegex(originStmt);
                 planner.plan(parsedStmt, 
context.getSessionVariable().toThrift());
-                checkBlockRules();
+                checkBlockRulesByScan(planner);
             } catch (MustFallbackException e) {
                 LOG.warn("Nereids plan query failed:\n{}", 
originStmt.originStmt, e);
                 throw new NereidsException("Command(" + originStmt.originStmt 
+ ") process failed.", e);


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

Reply via email to