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

Method WindowStep

src/Processors/QueryPlan/WindowStep.cpp:46–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46WindowStep::WindowStep(
47 const SharedHeader & input_header_,
48 const WindowDescription & window_description_,
49 const std::vector<WindowFunctionDescription> & window_functions_,
50 bool streams_fan_out_)
51 : ITransformingStep(input_header_, std::make_shared<const Block>(addWindowFunctionResultColumns(*input_header_, window_functions_)), getTraits(!streams_fan_out_))
52 , window_description(window_description_)
53 , window_functions(window_functions_)
54 , streams_fan_out(streams_fan_out_)
55{
56 // We don't remove any columns, only add, so probably we don't have to update
57 // the output DataStream::distinct_columns.
58
59 window_description.checkValid();
60
61}
62
63void WindowStep::transformPipeline(QueryPipelineBuilder & pipeline, const BuildQueryPipelineSettings &)
64{

Callers

nothing calls this directly

Calls 3

checkValidMethod · 0.80
getTraitsFunction · 0.70

Tested by

no test coverage detected