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

Method createStep

src/Processors/QueryPlan/QueryPlanStepRegistry.cpp:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26QueryPlanStepPtr QueryPlanStepRegistry::createStep(
27 const std::string & name,
28 IQueryPlanStep::Deserialization & ctx) const
29{
30 StepCreateFunction create_function;
31 {
32 auto it = steps.find(name);
33 if (it == steps.end())
34 throw Exception(ErrorCodes::UNKNOWN_IDENTIFIER, "Unknown query plan step: {}", name);
35 create_function = it->second;
36 }
37 return create_function(ctx);
38}
39
40void registerExpressionStep(QueryPlanStepRegistry & registry);
41void registerUnionStep(QueryPlanStepRegistry & registry);

Callers 1

deserializeMethod · 0.80

Calls 3

ExceptionClass · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected