Skip to content

Commit b5ffef0

Browse files
committed
improve docs
1 parent 4d3a6a8 commit b5ffef0

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

datafusion/physical-plan/src/joins/cross_join.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,14 @@ use futures::{ready, Stream, StreamExt, TryStreamExt};
4949
/// Data of the left side
5050
type JoinLeftData = (RecordBatch, MemoryReservation);
5151

52+
#[allow(rustdoc::private_intra_doc_links)]
5253
/// executes partitions in parallel and combines them into a set of
5354
/// partitions by combining all values from the left with all values on the right
54-
#[derive(Debug)] // note not Clone because of the OnceAsync
55+
///
56+
/// Note that the `Clone` trait is not implemented for this struct due to the
57+
/// `left_fut` [`OnceAsync`], which is used to coordinate the loading of the
58+
/// left side with the processing in each output stream.
59+
#[derive(Debug)]
5560
pub struct CrossJoinExec {
5661
/// left (build) side which gets loaded in memory
5762
pub left: Arc<dyn ExecutionPlan>,

datafusion/physical-plan/src/joins/hash_join.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ impl JoinLeftData {
136136
}
137137
}
138138

139+
#[allow(rustdoc::private_intra_doc_links)]
139140
/// Join execution plan: Evaluates eqijoin predicates in parallel on multiple
140141
/// partitions using a hash table and an optional filter list to apply post
141142
/// join.
@@ -293,7 +294,11 @@ impl JoinLeftData {
293294
/// │ "dimension" │ │ "fact" │
294295
/// └───────────────┘ └───────────────┘
295296
/// ```
296-
#[derive(Debug)] // note not Clone because of the OnceAsync
297+
///
298+
/// Note that the `Clone` trait is not implemented for this struct due to the
299+
/// `left_fut` [`OnceAsync`], which is used to coordinate the loading of the
300+
/// left side with the processing in each output stream.
301+
#[derive(Debug)]
297302
pub struct HashJoinExec {
298303
/// left (build) side which gets hashed
299304
pub left: Arc<dyn ExecutionPlan>,

datafusion/physical-plan/src/joins/nested_loop_join.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ impl JoinLeftData {
105105
}
106106
}
107107

108+
#[allow(rustdoc::private_intra_doc_links)]
108109
/// NestedLoopJoinExec is build-probe join operator, whose main task is to
109110
/// perform joins without any equijoin conditions in `ON` clause.
110111
///
@@ -140,7 +141,10 @@ impl JoinLeftData {
140141
/// "reports" about probe phase completion (which means that "visited" bitmap won't be
141142
/// updated anymore), and only the last thread, reporting about completion, will return output.
142143
///
143-
#[derive(Debug)] // note not Clone because of the OnceAsync
144+
/// Note that the `Clone` trait is not implemented for this struct due to the
145+
/// `left_fut` [`OnceAsync`], which is used to coordinate the loading of the
146+
/// left side with the processing in each output stream.
147+
#[derive(Debug)]
144148
pub struct NestedLoopJoinExec {
145149
/// left side
146150
pub(crate) left: Arc<dyn ExecutionPlan>,

0 commit comments

Comments
 (0)