#pragma once #include namespace DB { /// Calculate extremes. Add special port for extremes. class ExtremesStep : public ITransformingStep { public: explicit ExtremesStep(const Header & input_header_); String getName() const override { return "Extremes"; } void transformPipeline(QueryPipelineBuilder & pipeline, const BuildQueryPipelineSettings &) override; private: void updateOutputHeader() override { output_header = input_headers.front(); } }; }