ClickHouse/src/Processors/QueryPlan/TotalsHavingStep.h
Nikolai Kochetov 58c4a7b890 Some renames.
2020-11-11 19:52:27 +03:00

42 lines
985 B
C++

#pragma once
#include <Processors/QueryPlan/ITransformingStep.h>
namespace DB
{
class ActionsDAG;
using ActionsDAGPtr = std::shared_ptr<ActionsDAG>;
enum class TotalsMode;
/// Execute HAVING and calculate totals. See TotalsHavingTransform.
class TotalsHavingStep : public ITransformingStep
{
public:
TotalsHavingStep(
const DataStream & input_stream_,
bool overflow_row_,
const ActionsDAGPtr & actions_dag_,
const std::string & filter_column_,
TotalsMode totals_mode_,
double auto_include_threshold_,
bool final_);
String getName() const override { return "TotalsHaving"; }
void transformPipeline(QueryPipeline & pipeline) override;
void describeActions(FormatSettings & settings) const override;
private:
bool overflow_row;
ActionsDAGPtr actions_dag;
String filter_column_name;
TotalsMode totals_mode;
double auto_include_threshold;
bool final;
};
}