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

Method getQueryProcessingStage

src/Storages/StorageLoop.cpp:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 QueryProcessingStage::Enum StorageLoop::getQueryProcessingStage(
23 ContextPtr, QueryProcessingStage::Enum, const StorageSnapshotPtr &, SelectQueryInfo &) const
24 {
25 /// `LoopSource` always materialises the inner select with
26 /// `QueryProcessingStage::Complete`, so the chunks it emits are plain column
27 /// data. Delegating to `inner_storage` here could advertise `WithMergeableState`
28 /// (e.g. when the inner storage is `Distributed`) and make the outer planner add
29 /// a `MergingAggregatedStep`, which then trips on the missing chunk info — see
30 /// issue #104863.
31 return QueryProcessingStage::FetchColumns;
32 }
33
34 void StorageLoop::read(
35 QueryPlan & query_plan,

Callers 3

sendExternalTablesMethod · 0.45
getSampleBlockImplMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected