2020-06-17 19:30:36 +00:00
|
|
|
#include <Processors/QueryPlan/ExtremesStep.h>
|
|
|
|
#include <Processors/QueryPipeline.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2020-06-18 13:00:16 +00:00
|
|
|
static ITransformingStep::DataStreamTraits getTraits()
|
|
|
|
{
|
2020-06-18 20:11:42 +00:00
|
|
|
return ITransformingStep::DataStreamTraits
|
|
|
|
{
|
2020-06-22 10:18:28 +00:00
|
|
|
.preserves_distinct_columns = true,
|
|
|
|
.returns_single_stream = false,
|
|
|
|
.preserves_number_of_streams = true,
|
2020-07-27 12:48:33 +00:00
|
|
|
.preserves_number_of_rows = true,
|
2020-07-27 15:37:43 +00:00
|
|
|
.preserves_sorting = true,
|
2020-06-18 13:00:16 +00:00
|
|
|
};
|
|
|
|
}
|
2020-06-17 19:30:36 +00:00
|
|
|
|
2020-06-18 13:00:16 +00:00
|
|
|
ExtremesStep::ExtremesStep(const DataStream & input_stream_)
|
|
|
|
: ITransformingStep(input_stream_, input_stream_.header, getTraits())
|
|
|
|
{
|
|
|
|
}
|
2020-06-17 19:30:36 +00:00
|
|
|
|
|
|
|
void ExtremesStep::transformPipeline(QueryPipeline & pipeline)
|
|
|
|
{
|
|
|
|
pipeline.addExtremesTransform();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|