#include #include namespace DB { static ITransformingStep::DataStreamTraits getTraits() { return ITransformingStep::DataStreamTraits { .preserves_distinct_columns = true, .returns_single_stream = false, .preserves_number_of_streams = true, .preserves_number_of_rows = true, .preserves_sorting = true, }; } ExtremesStep::ExtremesStep(const DataStream & input_stream_) : ITransformingStep(input_stream_, input_stream_.header, getTraits()) { } void ExtremesStep::transformPipeline(QueryPipeline & pipeline) { pipeline.addExtremesTransform(); } }