Skip to content

Commit a1c9b6a

Browse files
committed
more comments
1 parent 90d6617 commit a1c9b6a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • datafusion/physical-plan/src/aggregates/aggregate_hash_table

‎datafusion/physical-plan/src/aggregates/aggregate_hash_table/common.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ impl<AggrMode> AggregateHashTable<AggrMode> {
173173

174174
/// Aggregates one input batch after selecting the mode-specific accumulator
175175
/// operation.
176+
///
177+
/// Each aggregation mode chooses a different `aggregate_fn` according to its
178+
/// semantics. For example, partial aggregation takes raw inputs, and update them
179+
/// into stored partial states, so [`GroupsAccumulator::update_batch`] is used.
176180
pub(super) fn aggregate_batch_inner<F>(
177181
&mut self,
178182
batch: &RecordBatch,

0 commit comments

Comments
 (0)