Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions datafusion/datasource/src/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ impl Debug for DataSinkExec {

impl DataSinkExec {
/// Create a plan to write to `sink`
/// Note: DataSinkExec requires its input to have a single partition.
/// If the input has multiple partitions, the physical optimizer will
/// automatically insert a Merge-related operator to merge them.
/// If you construct PhysicalPlan without going through the physical optimizer,
/// you must ensure that the input has a single partition.
pub fn new(
input: Arc<dyn ExecutionPlan>,
sink: Arc<dyn DataSink>,
Expand Down