mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Merge pull request #5560 from yandex/perftests-file-formats
Fix #5439 bug PrettySpace format
This commit is contained in:
commit
4c7d71af1c
@ -7,7 +7,6 @@
|
||||
namespace DB
|
||||
{
|
||||
|
||||
|
||||
void PrettySpaceBlockOutputStream::write(const Block & block)
|
||||
{
|
||||
UInt64 max_rows = format_settings.pretty.max_rows;
|
||||
@ -26,12 +25,6 @@ void PrettySpaceBlockOutputStream::write(const Block & block)
|
||||
Widths name_widths;
|
||||
calculateWidths(block, widths, max_widths, name_widths, format_settings);
|
||||
|
||||
/// Do not align on too long values.
|
||||
if (terminal_width > 80)
|
||||
for (size_t i = 0; i < columns; ++i)
|
||||
if (max_widths[i] > terminal_width / 2)
|
||||
max_widths[i] = terminal_width / 2;
|
||||
|
||||
/// Names
|
||||
for (size_t i = 0; i < columns; ++i)
|
||||
{
|
||||
|
@ -40,6 +40,7 @@
|
||||
<value>PrettyCompact</value>
|
||||
<value>PrettyCompactMonoBlock</value>
|
||||
<value>PrettyNoEscapes</value>
|
||||
<value>PrettySpace</value>
|
||||
<value>RowBinary</value>
|
||||
<value>Native</value>
|
||||
<value>XML</value>
|
||||
|
Loading…
Reference in New Issue
Block a user