mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
New analyzer support
This commit is contained in:
parent
f0933d2714
commit
81b8507cc1
@ -1333,14 +1333,27 @@ void Planner::buildPlanForQueryNode()
|
||||
}
|
||||
|
||||
collectSets(query_tree, *planner_context);
|
||||
|
||||
const auto & settings = query_context->getSettingsRef();
|
||||
if (query_context->canUseTaskBasedParallelReplicas())
|
||||
{
|
||||
if (planner_context->getPreparedSets().hasSubqueries())
|
||||
{
|
||||
if (settings.allow_experimental_parallel_reading_from_replicas == 2)
|
||||
throw Exception(ErrorCodes::SUPPORT_IS_DISABLED, "IN with subquery is not supported with parallel replicas");
|
||||
|
||||
auto & mutable_context = planner_context->getMutableQueryContext();
|
||||
mutable_context->setSetting("allow_experimental_parallel_reading_from_replicas", Field(0));
|
||||
LOG_DEBUG(&Poco::Logger::get("Planner"), "Disabling parallel replicas to execute a query with IN with subquery");
|
||||
}
|
||||
}
|
||||
|
||||
collectTableExpressionData(query_tree, planner_context);
|
||||
checkStoragesSupportTransactions(planner_context);
|
||||
|
||||
if (!select_query_options.only_analyze)
|
||||
collectFiltersForAnalysis(query_tree, planner_context);
|
||||
|
||||
const auto & settings = query_context->getSettingsRef();
|
||||
|
||||
if (query_context->canUseTaskBasedParallelReplicas())
|
||||
{
|
||||
const auto & table_expression_nodes = planner_context->getTableExpressionNodeToData();
|
||||
|
Loading…
Reference in New Issue
Block a user