Skip to content

Commit 8dbc32e

Browse files
nickitatCopilot
andauthored
Update src/Processors/QueryPlan/Optimizations/RuntimeDataflowStatistics.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 434645a commit 8dbc32e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Processors/QueryPlan/Optimizations/RuntimeDataflowStatistics.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ class RuntimeDataflowStatisticsCacheUpdater
9494

9595
void recordAggregationKeySizes(const Aggregator & aggregator, const Block & block);
9696

97-
/// Returns true if the current read block was chosen for sampling.
97+
/// Updates should_continue_sampling to true if the current read block is chosen for sampling.
9898
/// It is needed because in general we read each block in multiple steps because of prewhere.
99-
/// If the first part of the block was chosen for sampling, we want to record statistics for the whole block in later steps.
99+
/// If the first part of the block was chosen for sampling, we want to record statistics for the whole block in later steps,
100+
/// so should_continue_sampling remains true for subsequent calls for the same logical block.
100101
void recordInputColumns(
101102
const ColumnsWithTypeAndName & input_columns,
102103
const NamesAndTypesList & part_columns,

0 commit comments

Comments
 (0)