We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45c9fa3 commit 5336cf4Copy full SHA for 5336cf4
src/dataframe.rs
@@ -741,7 +741,8 @@ impl PyDataFrame {
741
.map_err(PyDataFusionError::from)?)
742
}
743
744
- let batches_wrapped = batches.into_iter().map(Ok);
+ // We need to flatten the nested structure to get Iterator<Item = Result<RecordBatch, ArrowError>>
745
+ let batches_wrapped = batches.into_iter().flatten().map(Ok);
746
747
let reader = RecordBatchIterator::new(batches_wrapped, Arc::new(schema));
748
let reader: Box<dyn RecordBatchReader + Send> = Box::new(reader);
0 commit comments