Skip to content

Apache DataFusion SQL Query Engine

Minor: Add a link to RecordBatchStreamAdapter to `SendableRecordBatchStream` (#14084)

Andrew Lambf9cc3325cdb5
diff --git a/datafusion/execution/src/stream.rs b/datafusion/execution/src/stream.rs
index f3eb7b77e0..5b309210aa 100644
--- a/datafusion/execution/src/stream.rs
+++ b/datafusion/execution/src/stream.rs
@@ -40,6 +40,13 @@ pub trait RecordBatchStream: Stream<Item = Result<RecordBatch>> {
/// `RecordBatch` returned by the stream should have the same schema as returned
/// by [`schema`](`RecordBatchStream::schema`).
///
+/// # See Also
+///
+/// * [`RecordBatchStreamAdapter`] to convert an existing [`Stream`]
+/// to [`SendableRecordBatchStream`]
+///
+/// [`RecordBatchStreamAdapter`]: https://docs.rs/datafusion/latest/datafusion/physical_plan/stream/struct.RecordBatchStreamAdapter.html
+///
/// # Error Handling
///
/// Once a stream returns an error, it should not be polled again (the caller