-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Remove more old code of projection analysis #55579
Changes from 3 commits
fb666e1
a01acf5
1c9d883
65efb18
40a1744
69896d9
cb6c955
7dd128f
ce1b978
cf4604b
48a3968
24fe5f4
f252412
48a7402
8c9cf39
3e933c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,14 +33,6 @@ struct SelectQueryOptions | |
bool remove_duplicates = false; | ||
bool ignore_quota = false; | ||
bool ignore_limits = false; | ||
/// This flag is needed to analyze query ignoring table projections. | ||
/// It is needed because we build another one InterpreterSelectQuery while analyzing projections. | ||
/// It helps to avoid infinite recursion. | ||
bool ignore_projections = false; | ||
/// This flag is also used for projection analysis. | ||
/// It is needed because lazy normal projections require special planning in FetchColumns stage, such as adding WHERE transform. | ||
/// It is also used to avoid adding aggregating step when aggregate projection is chosen. | ||
bool is_projection_query = false; | ||
/// This flag is needed for projection description. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we update the comments around There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think no, because we still use them in |
||
/// Otherwise, keys for GROUP BY may be removed as constants. | ||
bool ignore_ast_optimizations = false; | ||
|
@@ -119,18 +111,6 @@ struct SelectQueryOptions | |
return *this; | ||
} | ||
|
||
SelectQueryOptions & ignoreProjections(bool value = true) | ||
{ | ||
ignore_projections = value; | ||
return *this; | ||
} | ||
|
||
SelectQueryOptions & projectionQuery(bool value = true) | ||
{ | ||
is_projection_query = value; | ||
return *this; | ||
} | ||
|
||
SelectQueryOptions & ignoreAlias(bool value = true) | ||
{ | ||
ignore_alias = value; | ||
|
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.
This if now would probably be easier to read if it was:
As both options are separate there is no need of doing (if (a || b) { if (a) else ...)