comphead commented on code in PR #8022:
URL: https://github.com/apache/arrow-datafusion/pull/8022#discussion_r1379398276
##########
datafusion/physical-expr/src/partitioning.rs:
##########
@@ -15,14 +15,43 @@
// specific language governing permissions and limitations
// under the License.
-//! [`Partitioning`] and [`Distribution`] for physical expressions
+//! [`Partitioning`] and [`Distribution`] for `ExecutionPlans`
use std::fmt;
use std::sync::Arc;
use crate::{expr_list_eq_strict_order, EquivalenceProperties, PhysicalExpr};
-/// Partitioning schemes supported by operators.
+/// Partitioning schemes supported by [`ExecutionPlan`]s.
+///
+/// A partition represents an independent stream that an `ExecutionPlan` can
+/// produce in parallel. Each `ExecutionPlan` must produce at least one
+/// partition, and the number of partitions varies based on the input and the
+/// operation performed.
+///
+/// ```text
+/// ▲ ▲ ▲
+/// │ │ │
+/// │ │ │ An ExecutionPlan with 3
+/// │ │ │ output partitions will
+/// ┌───┴──────┴──────┴──┐ produce 3 streams of
+/// │ ExecutionPlan │ RecordBatches that run in
+/// └────────────────────┘ parallel.
Review Comment:
would be nice to show the input partition as well
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]