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

Function executeMonoBlock

src/TableFunctions/TableFunctionExplain.cpp:159–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159Block executeMonoBlock(QueryPipeline & pipeline)
160{
161 if (!pipeline.pulling())
162 throw Exception(ErrorCodes::LOGICAL_ERROR, "Expected pulling pipeline");
163
164 PullingPipelineExecutor pulling_executor(pipeline);
165 Blocks blocks;
166 while (true)
167 {
168 Block block;
169 if (pulling_executor.pull(block))
170 blocks.push_back(std::move(block));
171 else
172 break;
173 }
174
175 return concatenateBlocks(blocks);
176}
177
178StoragePtr TableFunctionExplain::executeImpl(
179 const ASTPtr & /*ast_function*/, ContextPtr context, const std::string & table_name, ColumnsDescription /*cached_columns*/, bool is_insert_query) const

Callers 1

executeImplMethod · 0.85

Calls 5

concatenateBlocksFunction · 0.85
pullingMethod · 0.80
ExceptionClass · 0.50
pullMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected