Update executeQuery.cpp

This commit is contained in:
Nikolai Kochetov 2021-03-02 13:09:29 +03:00 committed by GitHub
parent eb42896e26
commit 59a2c45555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,15 +473,12 @@ static std::tuple<ASTPtr, BlockIO> executeQueryImpl(
if (settings.enable_global_with_statement) if (settings.enable_global_with_statement)
{ {
ApplyWithGlobalVisitor().visit(ast); ApplyWithGlobalVisitor().visit(ast);
query = serializeAST(*ast);
} }
/// Normalize SelectWithUnionQuery /// Normalize SelectWithUnionQuery
NormalizeSelectWithUnionQueryVisitor::Data data{context.getSettingsRef().union_default_mode}; NormalizeSelectWithUnionQueryVisitor::Data data{context.getSettingsRef().union_default_mode};
NormalizeSelectWithUnionQueryVisitor{data}.visit(ast); NormalizeSelectWithUnionQueryVisitor{data}.visit(ast);
query = serializeAST(*ast);
/// Check the limits. /// Check the limits.
checkASTSizeLimits(*ast, settings); checkASTSizeLimits(*ast, settings);