[fix](update) Fix where clause is not reanalyzed after rewrite (#11723)
This commit is contained in:
@ -200,6 +200,8 @@ public class UpdateStmt extends DdlStmt {
|
||||
}
|
||||
whereExpr.analyze(analyzer);
|
||||
whereExpr = analyzer.getExprRewriter().rewrite(whereExpr, analyzer, ExprRewriter.ClauseType.WHERE_CLAUSE);
|
||||
whereExpr.reset();
|
||||
whereExpr.analyze(analyzer);
|
||||
if (!whereExpr.getType().equals(Type.BOOLEAN)) {
|
||||
throw new AnalysisException("Where clause is not a valid statement return bool");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user