mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
checkStackSize moved to the top of DNF::distributed in ORs in JOIN
This commit is contained in:
parent
6daef66364
commit
aa4751a632
@ -555,6 +555,8 @@ class DNF
|
||||
|
||||
ASTPtr distribute(ASTPtr node)
|
||||
{
|
||||
checkStackSize();
|
||||
|
||||
const auto * function = node->as<ASTFunction>();
|
||||
|
||||
if (function && function->children.size() == 1)
|
||||
@ -628,7 +630,6 @@ class DNF
|
||||
makeASTFunction("or", lst) :
|
||||
lst[0];
|
||||
|
||||
checkStackSize();
|
||||
node_added = true;
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user