Skip to content

Commit 2882050

Browse files
committed
Switch to execute_stream_partitioned
1 parent cacba9b commit 2882050

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dataframe.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,8 @@ async fn collect_record_batches_to_display(
887887
min_rows: usize,
888888
max_rows: usize,
889889
) -> Result<(Vec<RecordBatch>, bool), DataFusionError> {
890-
let mut stream = df.execute_stream().await?;
890+
let partitioned_stream = df.execute_stream_partitioned().await?;
891+
let mut stream = futures::stream::iter(partitioned_stream).flatten();
891892
let mut size_estimate_so_far = 0;
892893
let mut rows_so_far = 0;
893894
let mut record_batches = Vec::default();

0 commit comments

Comments
 (0)