Backport #62090 to 24.3: Revert output Pretty in tty

This commit is contained in:
robot-clickhouse 2024-03-30 04:05:39 +00:00
parent 4a98ff8069
commit dd9f411b14
2 changed files with 3 additions and 9 deletions

View File

@ -753,7 +753,7 @@ void ClientBase::setDefaultFormatsFromConfiguration()
else else
default_output_format = "TSV"; default_output_format = "TSV";
} }
else if (is_interactive || stdout_is_a_tty) else if (is_interactive)
{ {
default_output_format = "PrettyCompact"; default_output_format = "PrettyCompact";
} }

View File

@ -21,12 +21,6 @@ expect_after {
-i $any_spawn_id timeout { exit 1 } -i $any_spawn_id timeout { exit 1 }
} }
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_CLIENT --query 'SELECT 1'" spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_CLIENT --query 'SELECT 1, 2'"
expect "│ 1 │" expect "1\t2"
expect "└───┘"
expect eof
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_LOCAL --query 'SELECT 2'"
expect "│ 2 │"
expect "└───┘"
expect eof expect eof