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

Function makeExplain

src/Processors/QueryPlan/ReadFromRemote.cpp:891–902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889}
890
891static ASTPtr makeExplain(const ExplainPlanOptions & options, ASTPtr query)
892{
893 auto explain_settings = make_intrusive<ASTSetQuery>();
894 explain_settings->is_standalone = false;
895 explain_settings->changes = options.toSettingsChanges();
896
897 auto explain_query = make_intrusive<ASTExplainQuery>(ASTExplainQuery::ExplainKind::QueryPlan);
898 explain_query->setExplainedQuery(query);
899 explain_query->setSettings(explain_settings);
900
901 return explain_query;
902}
903
904static ASTPtr makeExplainPipeline(bool header, bool distributed, bool compact_repeated_processor_chains, ASTPtr query)
905{

Callers 1

Calls 3

setExplainedQueryMethod · 0.80
toSettingsChangesMethod · 0.45
setSettingsMethod · 0.45

Tested by

no test coverage detected