Skip to content

Commit 821db54

Browse files
authored
Error handling. (#8761)
1 parent b2e8848 commit 821db54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datafusion-cli/src/print_options.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ impl PrintOptions {
141141
let mut row_count = 0_usize;
142142
let mut with_header = true;
143143

144-
while let Some(Ok(batch)) = stream.next().await {
144+
while let Some(maybe_batch) = stream.next().await {
145+
let batch = maybe_batch?;
145146
row_count += batch.num_rows();
146147
self.format.print_batches(
147148
&mut writer,

0 commit comments

Comments
 (0)