mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
propagate storage limits to subquery
This commit is contained in:
parent
d6b465ab9d
commit
47509aea83
@ -336,6 +336,8 @@ JoinTreeQueryPlan buildQueryPlanForTableExpression(const QueryTreeNodePtr & tabl
|
|||||||
{
|
{
|
||||||
auto subquery_options = select_query_options.subquery();
|
auto subquery_options = select_query_options.subquery();
|
||||||
Planner subquery_planner(table_expression, subquery_options, planner_context->getGlobalPlannerContext());
|
Planner subquery_planner(table_expression, subquery_options, planner_context->getGlobalPlannerContext());
|
||||||
|
/// Propagate storage limits to subquery
|
||||||
|
subquery_planner.addStorageLimits(*select_query_info.storage_limits);
|
||||||
subquery_planner.buildQueryPlanIfNeeded();
|
subquery_planner.buildQueryPlanIfNeeded();
|
||||||
query_plan = std::move(subquery_planner).extractQueryPlan();
|
query_plan = std::move(subquery_planner).extractQueryPlan();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user