Merge pull request #7587 from ClickHouse/fix-nonsignificant-djvu-bug

Find and retrieve lost bug fix in pretty spaces
This commit is contained in:
Olga Khvostikova 2019-11-02 02:46:24 +03:00 committed by GitHub
commit 102a76ab47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,12 +29,6 @@ void PrettySpaceBlockOutputFormat::write(const Chunk & chunk, PortKind port_kind
Widths name_widths;
calculateWidths(header, chunk, widths, max_widths, name_widths);
/// Do not align on too long values.
if (terminal_width > 80)
for (size_t i = 0; i < num_columns; ++i)
if (max_widths[i] > terminal_width / 2)
max_widths[i] = terminal_width / 2;
/// Names
for (size_t i = 0; i < num_columns; ++i)
{