Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion datafusion-cli/src/print_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ impl PrintOptions {
print_options
.format
.print_header(&schema, &widths, writer)?;
header_printed = true;
}
for preview_batch in preview_batches.drain(..) {
print_options.format.print_batch_with_widths(
Expand Down Expand Up @@ -198,6 +197,13 @@ impl PrintOptions {
writer,
)?;
}
for preview_batch in preview_batches.drain(..) {
print_options.format.print_batch_with_widths(
&preview_batch,
precomputed_widths.as_ref().unwrap(),
writer,
)?;
}
}
if let Some(ref widths) = precomputed_widths {
print_options.format.print_bottom_border(widths, writer)?;
Expand Down