| 370 | } |
| 371 | |
| 372 | BlockIO 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 | |
| 396 | void InterpreterSelectWithUnionQuery::ignoreWithTotals() |
| 397 | { |
nothing calls this directly
no test coverage detected