-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable pretty format restrictions when stdout is not TTY #63942
Disable pretty format restrictions when stdout is not TTY #63942
Conversation
This is an automated comment for commit 4348168 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
Is it okay for you to change category to |
Sure, done. |
How to apply these limits when stdout is a tty? Needs a compatibility setting. |
If it is, then they simply works, this is just an overrides to make the output unlimited in case of i.e. |
I will apply the following hack for this - 8b61531 with a hope that it is not too ugly, but I don't have better idea (though later I think we could slightly rework how --interactive is handled for client, but let's not mix this changes in one PR) |
But no proper stacktraces due to musl build... Will do a rebase |
8b61531
to
f865b7b
Compare
If I want to redirect the output but still apply the same limits, how could it be done? |
Pass them explicitly, since they adjusted only if not changed |
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
settings changes check simply checks that the settings are either the same, or there is a record in system.settings_changes, however, the problem is that clickhouse-local now adjusts some settings for Pretty format in case of stdout is not a tty, and this is the case for this check. So to avoid this, just run the clickhouse-local under script(1) to fool it. Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
f865b7b
to
4348168
Compare
|
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Disable pretty format restrictions (
output_format_pretty_max_rows
/output_format_pretty_max_value_width
) when stdout is not TTY