Apache DataFusion SQL Query Engine
Improve doc (#12053)
张林伟b77917747fc2
diff --git a/datafusion/expr-common/src/accumulator.rs b/datafusion/expr-common/src/accumulator.rsindex eac91c4f8e..7533520945 100644--- a/datafusion/expr-common/src/accumulator.rs+++ b/datafusion/expr-common/src/accumulator.rs@@ -117,8 +117,8 @@ pub trait Accumulator: Send + Sync + Debug {/// ┌─────────────────────────┐ ┌─────────────────────────┐/// │ GroubyBy │ │ GroubyBy │/// │(AggregateMode::Partial) │ │(AggregateMode::Partial) │- /// └─────────────────────────┘ └────────────▲────────────┘- /// ▲ │+ /// └─────────────────────────┘ └─────────────────────────┘+ /// ▲ ▲/// │ │ update_batch() is called for/// │ │ each input RecordBatch/// .─────────. .─────────.@@ -185,15 +185,15 @@ pub trait Accumulator: Send + Sync + Debug {/// │(AggregateMode::Partial) │ │ (AggregateMode::Partial) │ the groups/// └─────────────────────────┘ └──────────────────────────┘/// ▲ ▲- /// │ ┌┘- /// │ │- /// .─────────. .─────────.- /// ,─' '─. ,─' '─.- /// ; Input : ; Input : 1. Since input data is- /// : Partition 0 ; : Partition 1 ; arbitrarily or RoundRobin- /// ╲ ╱ ╲ ╱ distributed, each partition- /// '─. ,─' '─. ,─' likely has all distinct- /// `───────' `───────'+ /// │ │+ /// │ │+ /// .─────────. .─────────.+ /// ,─' '─. ,─' '─.+ /// ; Input : ; Input : 1. Since input data is+ /// : Partition 0 ; : Partition 1 ; arbitrarily or RoundRobin+ /// ╲ ╱ ╲ ╱ distributed, each partition+ /// '─. ,─' '─. ,─' likely has all distinct+ /// `───────' `───────'/// ```////// This structure is used so that the `AggregateMode::Partial` accumulators