This is an automated email from the ASF dual-hosted git repository.
starocean999 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 3912e523fb0 [enhancemment](planner)check sql regex block rule before
plan phase (#57477)
3912e523fb0 is described below
commit 3912e523fb0dfa05668488db56ae5d6a062ff72c
Author: starocean999 <[email protected]>
AuthorDate: Fri Oct 31 16:31:52 2025 +0800
[enhancemment](planner)check sql regex block rule before plan phase (#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 d8d86ecf94e..d944d0889b8 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
@@ -732,8 +732,9 @@ public class StmtExecutor {
syncJournalIfNeeded();
planner = new NereidsPlanner(statementContext);
try {
+ checkBlockRulesByRegex(originStmt);
planner.plan(parsedStmt,
context.getSessionVariable().toThrift());
- checkBlockRules();
+ checkBlockRulesByScan(planner);
} catch (Exception e) {
LOG.warn("Nereids plan query failed:\n{}",
originStmt.originStmt, e);
throw new NereidsException(new
AnalysisException(e.getMessage(), e));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]