-
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
Added cache for low cardinality function result. #3200
Added cache for low cardinality function result. #3200
Conversation
c34d703
to
d526859
Compare
@@ -109,8 +109,8 @@ namespace | |||
} | |||
|
|||
|
|||
ColumnWithDictionary::ColumnWithDictionary(MutableColumnPtr && column_unique_, MutableColumnPtr && indexes_) | |||
: dictionary(std::move(column_unique_)), idx(std::move(indexes_)) | |||
ColumnWithDictionary::ColumnWithDictionary(MutableColumnPtr && column_unique_, MutableColumnPtr && indexes_, bool is_shared) |
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.
Missing comment about is_shared
.
We should try to utilize COWPtr
for this purpose (to unshare ColumnUnique
on mutating operations).
@@ -41,6 +42,64 @@ namespace ErrorCodes | |||
} | |||
|
|||
|
|||
class PreparedFunctionLowCardinalityResultCache |
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.
Missing comment.
@@ -87,7 +90,8 @@ struct ExpressionAction | |||
|
|||
/// For APPLY_FUNCTION and LEFT ARRAY JOIN. | |||
FunctionBuilderPtr function_builder; | |||
FunctionBasePtr function; | |||
FunctionBasePtr function_base; |
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.
Need to either:
- remove some of these members;
- write a comment about each.
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en