Skip to content

Commit

Permalink
fold should first
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 committed Dec 26, 2023
1 parent bcf87d9 commit 0184ac2
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1158,11 +1158,7 @@ private void analyzeAndGenerateQueryPlan(TQueryOptions tQueryOptions) throws Use

parsedStmt.rewriteExprs(rewriter);
reAnalyze = rewriter.changed();
if (context.getSessionVariable().isEnableFoldConstantByBe()) {
// fold constant expr
parsedStmt.foldConstant(rewriter, tQueryOptions);

}
if (analyzer.containSubquery()) {
parsedStmt = setParsedStmt(StmtRewriter.rewrite(analyzer, parsedStmt));
reAnalyze = true;
Expand Down

0 comments on commit 0184ac2

Please sign in to comment.