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

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


The following commit(s) were added to refs/heads/dev-1.1.2 by this push:
     new e96572b931 [Bug] Update Stmt Fail use in predicate query (#11414) 
(#11492)
e96572b931 is described below

commit e96572b931084f224e0d8619e01dee993ff39eae
Author: yiguolei <[email protected]>
AuthorDate: Thu Aug 4 10:40:17 2022 +0800

    [Bug] Update Stmt Fail use in predicate query (#11414) (#11492)
---
 fe/fe-core/src/main/java/org/apache/doris/analysis/UpdateStmt.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/UpdateStmt.java 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/UpdateStmt.java
index 0d845f9c7c..f40d99c318 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/UpdateStmt.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/UpdateStmt.java
@@ -196,8 +196,8 @@ public class UpdateStmt extends DdlStmt {
         if (whereExpr == null) {
             throw new AnalysisException("Where clause is required");
         }
-        whereExpr = analyzer.getExprRewriter().rewrite(whereExpr, analyzer, 
ExprRewriter.ClauseType.WHERE_CLAUSE);
         whereExpr.analyze(analyzer);
+        whereExpr = analyzer.getExprRewriter().rewrite(whereExpr, analyzer, 
ExprRewriter.ClauseType.WHERE_CLAUSE);
         if (!whereExpr.getType().equals(Type.BOOLEAN)) {
             throw new AnalysisException("Where clause is not a valid statement 
return bool");
         }


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

Reply via email to