Try recreate context for IN subqueries.

This commit is contained in:
Nikolai Kochetov 2023-12-15 21:42:20 +00:00
parent 2f9537b7e0
commit 8daa8e509a

View File

@ -1054,7 +1054,7 @@ void addBuildSubqueriesForSetsStepIfNeeded(
Planner subquery_planner(
query_tree,
subquery_options,
planner_context->getGlobalPlannerContext());
std::make_shared<GlobalPlannerContext>()); //planner_context->getGlobalPlannerContext());
subquery_planner.buildQueryPlanIfNeeded();
subquery->setQueryPlan(std::make_unique<QueryPlan>(std::move(subquery_planner).extractQueryPlan()));