Add setting for better rendering of multiline string for pretty format#63479
Conversation
|
This is an automated comment for commit cd3a60b 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
|
|
Ok and also SettingsChangesHistory. |
| {"cross_join_min_bytes_to_compress", 0, 1_GiB, "A new setting."}, | ||
| {"prefer_external_sort_block_bytes", 0, DEFAULT_BLOCK_SIZE * 256, "Prefer maximum block bytes for external sort, reduce the memory usage during merging."}, | ||
| {"input_format_force_null_for_omitted_fields", false, false, "Disable type-defaults for omitted fields when needed"}, | ||
| {"output_format_pretty_preserve_border_for_multiline_string", 1, 1, "Applies better rendering for multiline strings."}, |
There was a problem hiding this comment.
Shouldn't previous value be 0 not 1? If I understand correctly, to achieve previous behaviour we should disable this setting, so previpusly ClickHouse behaived like this setting is disabled?
P.S. SettingsChangesHistory is used to set settings to the state they were in some previous version.
There was a problem hiding this comment.
I thought that if we created a new setting, it doesn't matter what value we put as a previous value for this setting, because this setting simply did not exist before. Should I fix this in follow-up pr?
There was a problem hiding this comment.
I thought that if we created a new setting, it doesn't matter what value we put as a previous value for this setting, because this setting simply did not exist before
Yes, it's a new setting, but this setting enables new behaviour by default. And when we set compatibility setting to some old version, we want the server to behave like this new setting wasn't added (so, in our case we should disable this new setting):
ClickHouse/src/Core/SettingsChangesHistory.h
Lines 83 to 84 in 6c0450f
Should I fix this in follow-up pr?
Yes, please.
There was a problem hiding this comment.
Got it, thanks, will fix it🙂
…_setting_from_multiline_strings"" This reverts commit 7e42948.
ref. #59940
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Provides setting
output_format_pretty_preserve_border_for_multiline_stringwhich allows to render multiline strings in pretty format better. The default value for this setting is true.Documentation entry for user-facing changes
Modify your CI run
NOTE: If your merge the PR with modified CI you MUST KNOW what you are doing
NOTE: Checked options will be applied if set before CI RunConfig/PrepareRunConfig step
Include tests (required builds will be added automatically):
Exclude tests:
Extra options:
Only specified batches in multi-batch jobs:
Details