MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / buildQueryPlanIfNeeded

Method buildQueryPlanIfNeeded

src/Planner/Planner.cpp:1924–1940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1922}
1923
1924void Planner::buildQueryPlanIfNeeded()
1925{
1926 if (query_plan.isInitialized())
1927 return;
1928
1929 LOG_TRACE(
1930 log,
1931 "Query to stage {}{}",
1932 QueryProcessingStage::toString(select_query_options.to_stage),
1933 select_query_options.only_analyze ? " only analyze" : "");
1934
1935 if (query_tree->getNodeType() == QueryTreeNodeType::UNION)
1936 buildPlanForUnionNode();
1937 else
1938 buildPlanForQueryNode();
1939 extendQueryContextAndStoragesLifetime(query_plan, planner_context);
1940}
1941
1942void Planner::buildPlanForUnionNode()
1943{

Calls 4

toStringFunction · 0.50
isInitializedMethod · 0.45
getNodeTypeMethod · 0.45

Tested by

no test coverage detected