| 24 | } |
| 25 | |
| 26 | QueryPlanStepPtr 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 | |
| 40 | void registerExpressionStep(QueryPlanStepRegistry & registry); |
| 41 | void registerUnionStep(QueryPlanStepRegistry & registry); |
no test coverage detected