ClickHouse/src/Processors/QueryPlan/CubeStep.h
2021-10-15 23:18:20 +03:00

28 lines
720 B
C++

#pragma once
#include <Processors/QueryPlan/ITransformingStep.h>
#include <QueryPipeline/SizeLimits.h>
#include <Interpreters/Aggregator.h>
namespace DB
{
struct AggregatingTransformParams;
using AggregatingTransformParamsPtr = std::shared_ptr<AggregatingTransformParams>;
/// WITH CUBE. See CubeTransform.
class CubeStep : public ITransformingStep
{
public:
CubeStep(const DataStream & input_stream_, AggregatingTransformParamsPtr params_);
String getName() const override { return "Cube"; }
void transformPipeline(QueryPipelineBuilder & pipeline, const BuildQueryPipelineSettings &) override;
const Aggregator::Params & getParams() const;
private:
AggregatingTransformParamsPtr params;
};
}