mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
34 lines
769 B
C++
34 lines
769 B
C++
#include <Processors/QueryPlan/ExtremesStep.h>
|
|
#include <QueryPipeline/QueryPipelineBuilder.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
static ITransformingStep::Traits getTraits()
|
|
{
|
|
return ITransformingStep::Traits
|
|
{
|
|
{
|
|
.preserves_distinct_columns = true,
|
|
.returns_single_stream = false,
|
|
.preserves_number_of_streams = true,
|
|
.preserves_sorting = true,
|
|
},
|
|
{
|
|
.preserves_number_of_rows = true,
|
|
}
|
|
};
|
|
}
|
|
|
|
ExtremesStep::ExtremesStep(const DataStream & input_stream_)
|
|
: ITransformingStep(input_stream_, input_stream_.header, getTraits())
|
|
{
|
|
}
|
|
|
|
void ExtremesStep::transformPipeline(QueryPipelineBuilder & pipeline, const BuildQueryPipelineSettings &)
|
|
{
|
|
pipeline.addExtremesTransform();
|
|
}
|
|
|
|
}
|