-
Notifications
You must be signed in to change notification settings - Fork 7k
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
ISSUES-2786 fix replace asterisk with join query #2787
ISSUES-2786 fix replace asterisk with join query #2787
Conversation
f125da2
to
cf294e4
Compare
all_columns_name.insert(all_columns_name.begin(), columns_name.begin(), columns_name.end()); | ||
|
||
NameSet joined_columns; | ||
collectJoinedColumns(joined_columns); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better not to call collectJoinedColumns
from here because it has side effects.
Actually, we need only columns_from_joined_table
. It's created in collectJoinedColumns
method, and this code may be extracted to AnalyzedJoin
's member function. Also, it's better to add bool flag in order to check that columns_from_joined_table
won't be calculated twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can try to finish this part of the work : )
Could you please also provide a setting to turn on old behaviour for compatibility? |
26c7565
to
da4e036
Compare
Almost done @alexey-milovidov @KochetovNicolai |
626f7de
to
ecb916d
Compare
ecb916d
to
741abc2
Compare
#2786
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en