You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/08/04 02:40:22 UTC
[doris] branch dev-1.1.2 updated: [Bug] Update Stmt Fail use in predicate query (#11414) (#11492)
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 <67...@qq.com>
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org