You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by al...@apache.org on 2024/08/19 16:00:33 UTC

(datafusion) branch main updated: Improve doc (#12053)

This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new b77917747f Improve doc (#12053)
b77917747f is described below

commit b77917747fc24d45173d4aed323302f4fda77a12
Author: 张林伟 <le...@gmail.com>
AuthorDate: Tue Aug 20 00:00:29 2024 +0800

    Improve doc (#12053)
---
 datafusion/expr-common/src/accumulator.rs | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/datafusion/expr-common/src/accumulator.rs b/datafusion/expr-common/src/accumulator.rs
index 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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org