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

Method getSampleBlock

src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:321–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321SharedHeader InterpreterSelectQueryAnalyzer::getSampleBlock(const ASTPtr & query,
322 const ContextPtr & context,
323 const SelectQueryOptions & select_query_options)
324{
325 auto select_query_options_copy = select_query_options;
326 select_query_options_copy.only_analyze = true;
327 InterpreterSelectQueryAnalyzer interpreter(query, context, select_query_options_copy);
328
329 return interpreter.getSampleBlock();
330}
331
332std::pair<SharedHeader, PlannerContextPtr> InterpreterSelectQueryAnalyzer::getSampleBlockAndPlannerContext(const QueryTreeNodePtr & query_tree,
333 const ContextPtr & context,

Callers

nothing calls this directly

Calls 2

getQueryPlanMethod · 0.80

Tested by

no test coverage detected