We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b63e559 commit e3e3b20Copy full SHA for e3e3b20
1 file changed
src/dataframe.rs
@@ -353,7 +353,13 @@ impl PyDataFrame {
353
Ok(html_str)
354
}
355
356
-
+/// Synchronous wrapper around a [`SendableRecordBatchStream`] used for
357
+/// the `__arrow_c_stream__` implementation.
358
+///
359
+/// It uses `runtime.block_on` to consume the underlying async stream,
360
+/// providing synchronous iteration. When a `projection` is set, each
361
+/// batch is converted via `record_batch_into_schema` to apply schema
362
+/// changes per batch.
363
struct DataFrameStreamReader {
364
stream: SendableRecordBatchStream,
365
runtime: Handle,
0 commit comments