mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
Update executeQuery.cpp
This commit is contained in:
parent
eb42896e26
commit
59a2c45555
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user