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
MySQL: Force-set prefer_column_name_to_alias
in handler and set mysql_map_(fixed)_string_to_text_in_show_columns
by default
#60365
MySQL: Force-set prefer_column_name_to_alias
in handler and set mysql_map_(fixed)_string_to_text_in_show_columns
by default
#60365
Conversation
…wo MySQL settings
This is an automatic comment. The PR descriptions does not match the template. Please, edit it accordingly. The error is: Changelog entry required for category 'Bug Fix (user-visible misbehavior in an official stable release)' |
1 similar comment
This is an automatic comment. The PR descriptions does not match the template. Please, edit it accordingly. The error is: Changelog entry required for category 'Bug Fix (user-visible misbehavior in an official stable release)' |
This is an automated comment for commit ac7a3cd 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
|
Some BI tools which connect to ClickHouse's MySQL port, run queries that succeed only with
prefer_column_name_to_alias = 1
.Since
prefer_column_name_to_alias
is too impactful to enable it globally, it is now force-enabled for MySQL connections as a workaround. When the analyzer is the new default, this PR can be reverted.This PR also enables settings
mysql_map_string_to_text_in_show_columns
andmysql_map_fixed_string_to_text_in_show_columns
by default (which they should have been from the start already). This means thatSHOW COLUMNS
when called through the MySQL port now returns the expected MySQL-equivalent data types w/o further messing with configuration.@slvrtrn
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Connections through the MySQL port now automatically run with setting
prefer_column_name_to_alias = 1
to support QuickSight out-of-the-box. Also, settingsmysql_map_string_to_text_in_show_columns
andmysql_map_fixed_string_to_text_in_show_columns
are now enabled by default, affecting also only MySQL connections. This increases compatibility with more BI tools.