Skip to content

Apache DataFusion SQL Query Engine

ARROW-11545: [Rust] [DataFusion] SendableRecordBatchStream should implement Sync

Andy Grove6f8bbaf7b1f8
diff --git a/rust/datafusion/src/physical_plan/mod.rs b/rust/datafusion/src/physical_plan/mod.rs
index 7afa0127e5..2dac406e2a 100644
--- a/rust/datafusion/src/physical_plan/mod.rs
+++ b/rust/datafusion/src/physical_plan/mod.rs
@@ -44,7 +44,7 @@ pub trait RecordBatchStream: Stream<Item = ArrowResult<RecordBatch>> {
}
/// Trait for a stream of record batches.
-pub type SendableRecordBatchStream = Pin<Box<dyn RecordBatchStream + Send>>;
+pub type SendableRecordBatchStream = Pin<Box<dyn RecordBatchStream + Send + Sync>>;
/// Physical query planner that converts a `LogicalPlan` to an
/// `ExecutionPlan` suitable for execution.