Skip to content

Commit 9a2019a

Browse files
Merge pull request ClickHouse#79908 from ClickHouse/fix-pretty-glue
Fix a mistake in ClickHouse#79339
2 parents 27b618f + b24a3d5 commit 9a2019a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Processors/Formats/Impl/PrettyBlockOutputFormat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ void PrettyBlockOutputFormat::writeChunk(const Chunk & chunk, PortKind port_kind
461461
if (glue_chunks
462462
&& port_kind == PortKind::Main
463463
&& (!format_settings.pretty.row_numbers || row_number_width == prev_row_number_width)
464-
&& name_widths == prev_chunk_name_widths)
464+
&& max_widths == prev_chunk_max_widths)
465465
{
466466
/// Move cursor up to overwrite the footer of the previous chunk:
467467
if (!rows_end.empty())
@@ -591,7 +591,7 @@ void PrettyBlockOutputFormat::writeChunk(const Chunk & chunk, PortKind port_kind
591591
had_footer = false;
592592
}
593593
total_rows += num_rows;
594-
prev_chunk_name_widths = std::move(name_widths);
594+
prev_chunk_max_widths = std::move(max_widths);
595595
}
596596

597597

src/Processors/Formats/Impl/PrettyBlockOutputFormat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class PrettyBlockOutputFormat : public IOutputFormat
8888

8989
/// For mono_block == true only
9090
Chunk mono_chunk;
91-
Widths prev_chunk_name_widths;
91+
Widths prev_chunk_max_widths;
9292
bool had_footer = false;
9393

9494
/// Implements squashing of chunks by time

0 commit comments

Comments
 (0)