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

jiafengzheng pushed a commit to branch sql_block_fix
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/sql_block_fix by this push:
     new 53718ba6da 1
53718ba6da is described below

commit 53718ba6da48b2fbb9def5d0b295d0b259ea93f2
Author: jiafeng.zhang <zhang...@gmail.com>
AuthorDate: Wed Sep 13 10:48:08 2023 +0800

    1
---
 .../src/main/java/org/apache/doris/analysis/AlterSqlBlockRuleStmt.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/analysis/AlterSqlBlockRuleStmt.java 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/AlterSqlBlockRuleStmt.java
index e7af4c47a6..a46b3c91e0 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/analysis/AlterSqlBlockRuleStmt.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/AlterSqlBlockRuleStmt.java
@@ -72,7 +72,7 @@ public class AlterSqlBlockRuleStmt extends DdlStmt {
     }
 
     private void setProperties(Map<String, String> properties) throws 
AnalysisException {
-        this.sql = 
properties.getOrDefault(CreateSqlBlockRuleStmt.SQL_PROPERTY, 
CreateSqlBlockRuleStmt.STRING_NOT_SET);
+        this.sql = 
properties.getOrDefault(CreateSqlBlockRuleStmt.SQL_PROPERTY, 
CreateSqlBlockRuleStmt.STRING_NOT_SET).trim();
         this.sqlHash = 
properties.getOrDefault(CreateSqlBlockRuleStmt.SQL_HASH_PROPERTY,
                 CreateSqlBlockRuleStmt.STRING_NOT_SET);
         String partitionNumString = 
properties.get(CreateSqlBlockRuleStmt.SCANNED_PARTITION_NUM);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to