Skip to content

Remove asterisk_left_columns_only setting#7335

Merged
4ertus2 merged 2 commits intoClickHouse:masterfrom
4ertus2:ast
Oct 16, 2019
Merged

Remove asterisk_left_columns_only setting#7335
4ertus2 merged 2 commits intoClickHouse:masterfrom
4ertus2:ast

Conversation

@4ertus2
Copy link
Copy Markdown
Contributor

@4ertus2 4ertus2 commented Oct 15, 2019

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

Category (leave one):

  • Backward Incompatible Change

Short description (up to few sentences):
Remove legacy asterisk_left_columns_only setting (it was disabled by default).

Detailed description (optional):
You can use qualified asterisks instead: select t.* from t join u.

{
bool found = false;
for (const auto & column_name : source_columns)
for (const auto & column : source_columns)
Copy link
Copy Markdown
Contributor Author

@4ertus2 4ertus2 Oct 15, 2019

Choose a reason for hiding this comment

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

It's strange but if we change ordered source_columns to unordered source_columns_set with the same data we get an error with names resolving.

Update: the most probable reason is an alias column in source_columns_set and general one in source_columns. If we have no columns to select we should add not an alias here.

@4ertus2 4ertus2 merged commit b70ca30 into ClickHouse:master Oct 16, 2019
@akuzm akuzm added the pr-improvement Pull request with some product improvements label Oct 29, 2019
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.

2 participants