Skip to content

Change MySQL global variables query to globalVariable function#11901

Merged
alexey-milovidov merged 6 commits intoClickHouse:masterfrom
bohutang:mysql_global_variables
Jun 25, 2020
Merged

Change MySQL global variables query to globalVariable function#11901
alexey-milovidov merged 6 commits intoClickHouse:masterfrom
bohutang:mysql_global_variables

Conversation

@bohutang
Copy link
Contributor

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Deprecate the old regular style and use the new globalVariable method #11832

@blinkov blinkov added the pr-improvement Pull request with some product improvements label Jun 24, 2020
@bohutang bohutang force-pushed the mysql_global_variables branch from de3378d to 4d96a25 Compare June 24, 2020 05:40
@bohutang
Copy link
Contributor Author

CC @alexey-milovidov
Please give a 'can be tested' lable, thanks.

{
if (!checkColumnConst<ColumnString>(arguments[0].column.get()))
throw Exception("Agrument of function " + getName() + " must be constant string", ErrorCodes::BAD_ARGUMENTS);
throw Exception("Argument of function " + getName() + " must be constant string", ErrorCodes::BAD_ARGUMENTS);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alexey-milovidov
Copy link
Member

Also please look at #11089
We can easily close it with this PR :)

@bohutang bohutang changed the title [WIP] Change MySQL global variables query to globalVariable function Change MySQL global variables query to globalVariable function Jun 24, 2020
@bohutang bohutang marked this pull request as ready for review June 24, 2020 13:33
@bohutang
Copy link
Contributor Author

Also please look at #11089
We can easily close it with this PR :)

Done

@phuslu
Copy link

phuslu commented Jun 24, 2020

sorry for jumping this thread, is possible add mysql "connection_id()" fake function in this stage?
some mysql frontend tool (e.g. mycli) need "connection_id()" during connect.

@bohutang
Copy link
Contributor Author

sorry for jumping this thread, is possible add mysql "connection_id()" fake function in this stage?
some mysql frontend tool (e.g. mycli) need "connection_id()" during connect.

This patch is about global variables, connection_id() is function.
AFAIK, connection_id() is not necessary, what's the case?

@alexey-milovidov
Copy link
Member

Flaky test is reported in #11815

@alexey-milovidov alexey-milovidov merged commit bc585c7 into ClickHouse:master Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants