Skip to content

Commit

Permalink
export processors getter in QueryPlanStep
Browse files Browse the repository at this point in the history
  • Loading branch information
liuneng1994 committed May 22, 2023
1 parent eefee3c commit 3ad2d43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Processors/QueryPlan/AggregatingStep.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ class AggregatingStep : public ITransformingStep
/// Argument input_stream would be the second input (from projection).
std::unique_ptr<AggregatingProjectionStep> convertToAggregatingProjection(const DataStream & input_stream) const;

const Processors & getProcessors() const override
{
return aggregating;
}

private:
void updateOutputStream() override;

Expand Down
5 changes: 5 additions & 0 deletions src/Processors/QueryPlan/IQueryPlanStep.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ class IQueryPlanStep
/// Append extra processors for this step.
void appendExtraProcessors(const Processors & extra_processors);

virtual const Processors & getProcessors() const
{
return processors;
}

protected:
DataStreams input_streams;
std::optional<DataStream> output_stream;
Expand Down

0 comments on commit 3ad2d43

Please sign in to comment.