MCPcopy Create free account
hub / github.com/ByConity/ByConity / execute

Method execute

src/Interpreters/InterpreterSelectWithUnionQuery.cpp:372–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372BlockIO InterpreterSelectWithUnionQuery::execute()
373{
374 BlockIO res;
375
376 QueryPlan query_plan;
377 buildQueryPlan(query_plan);
378
379 auto pipeline = query_plan.buildQueryPipeline(
380 QueryPlanOptimizationSettings::fromContext(context),
381 BuildQueryPipelineSettings::fromContext(context));
382
383 // FIXME: Handle TEALimit
384 if (unlikely(query_ptr->as<ASTSelectWithUnionQuery>()->tealimit))
385 res.pipeline = executeTEALimit(pipeline);
386 else
387 res.pipeline = std::move(*pipeline);
388 res.pipeline.addInterpreterContext(context);
389 res.pipeline.addUsedStorageIDs(used_storage_ids);
390 if (!hasAllUsedStorageIDs())
391 res.pipeline.setHasAllUsedStorageIDs(false);
392
393 return res;
394}
395
396void InterpreterSelectWithUnionQuery::ignoreWithTotals()
397{

Callers

nothing calls this directly

Calls 5

executeTEALimitFunction · 0.85
buildQueryPipelineMethod · 0.80
addInterpreterContextMethod · 0.45
addUsedStorageIDsMethod · 0.45

Tested by

no test coverage detected