Skip to content

Commit

Permalink
Error handling. (#8761)
Browse files Browse the repository at this point in the history
  • Loading branch information
metesynnada committed Jan 5, 2024
1 parent b2e8848 commit 821db54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datafusion-cli/src/print_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ impl PrintOptions {
let mut row_count = 0_usize;
let mut with_header = true;

while let Some(Ok(batch)) = stream.next().await {
while let Some(maybe_batch) = stream.next().await {
let batch = maybe_batch?;
row_count += batch.num_rows();
self.format.print_batches(
&mut writer,
Expand Down

0 comments on commit 821db54

Please sign in to comment.