mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
36 lines
901 B
C++
36 lines
901 B
C++
#pragma once
|
|
#include <Processors/QueryPlan/ITransformingStep.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ActionsDAG;
|
|
using ActionsDAGPtr = std::shared_ptr<ActionsDAG>;
|
|
|
|
class ExpressionTransform;
|
|
class JoiningTransform;
|
|
|
|
/// Calculates specified expression. See ExpressionTransform.
|
|
class ExpressionStep : public ITransformingStep
|
|
{
|
|
public:
|
|
|
|
explicit ExpressionStep(const DataStream & input_stream_, const ActionsDAGPtr & actions_dag_);
|
|
String getName() const override { return "Expression"; }
|
|
|
|
void transformPipeline(QueryPipelineBuilder & pipeline, const BuildQueryPipelineSettings & settings) override;
|
|
|
|
void describeActions(FormatSettings & settings) const override;
|
|
|
|
const ActionsDAGPtr & getExpression() const { return actions_dag; }
|
|
|
|
void describeActions(JSONBuilder::JSONMap & map) const override;
|
|
|
|
private:
|
|
void updateOutputStream() override;
|
|
|
|
ActionsDAGPtr actions_dag;
|
|
};
|
|
|
|
}
|