-
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-2083 fix filter required with union & subquery #2094
Conversation
12ce7bf
to
8b53fc2
Compare
34ffa94
to
6b8d8c3
Compare
6b8d8c3
to
5d5350c
Compare
namespace DB | ||
{ | ||
|
||
class CuttingUnionAllRequiredColumnBlockInputStream : public IProfilingBlockInputStream |
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.
No comments - don't understand.
class CuttingUnionAllRequiredColumnBlockInputStream : public IProfilingBlockInputStream | ||
{ | ||
public: | ||
CuttingUnionAllRequiredColumnBlockInputStream(const BlockInputStreamPtr input_, const Names & required_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.
Why pass by value?
* required_columns : [X,A,X] | ||
* output_columns : [X,A,X] | ||
*/ | ||
class CuttingUnionAllRequiredColumnBlockInputStream : public IProfilingBlockInputStream |
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.
Because Interpreter cannot remove second x
of second sub_union_query for
SELECT field_1,field_3,field_4 FROM (SELECT field_1,field_2,field_3,field_4 FROM table_a UNION ALL SELECT X,X,A,X FROM b);
This reverts commit 36eae15.
This reverts commit 4755422.
#2083
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en