ClickHouse/src/Processors/QueryPlan/WindowStep.h

36 lines
852 B
C++
Raw Normal View History

2020-12-10 22:16:58 +00:00
#pragma once
#include <Processors/QueryPlan/ITransformingStep.h>
2020-12-15 00:36:03 +00:00
#include <Interpreters/AggregateDescription.h>
2020-12-10 22:16:58 +00:00
namespace DB
{
class ActionsDAG;
using ActionsDAGPtr = std::shared_ptr<ActionsDAG>;
class WindowTransform;
class WindowStep : public ITransformingStep
{
public:
using Transform = WindowTransform;
2020-12-15 00:36:03 +00:00
explicit WindowStep(const DataStream & input_stream_,
const WindowDescription & window_description_,
const std::vector<WindowFunctionDescription> & window_functions_);
2020-12-10 22:16:58 +00:00
String getName() const override { return "Expression"; }
void transformPipeline(QueryPipeline & pipeline) override;
void describeActions(FormatSettings & settings) const override;
private:
2020-12-15 00:36:03 +00:00
WindowDescription window_description;
std::vector<WindowFunctionDescription> window_functions;
Block input_header;
2020-12-10 22:16:58 +00:00
};
}