| 348 | } |
| 349 | |
| 350 | Pipe QueryPlan::convertToPipe( |
| 351 | const QueryPlanOptimizationSettings & optimization_settings, const BuildQueryPipelineSettings & build_pipeline_settings) |
| 352 | { |
| 353 | if (!isInitialized()) |
| 354 | return {}; |
| 355 | |
| 356 | if (isCompleted()) |
| 357 | throw Exception("Cannot convert completed QueryPlan to Pipe", ErrorCodes::LOGICAL_ERROR); |
| 358 | |
| 359 | return QueryPipeline::getPipe(std::move(*buildQueryPipeline(optimization_settings, build_pipeline_settings))); |
| 360 | } |
| 361 | |
| 362 | void QueryPlan::addInterpreterContext(std::shared_ptr<Context> context) |
| 363 | { |