Skip to content
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

Merged
merged 2 commits into from
Sep 26, 2018

Conversation

KochetovNicolai
Copy link
Member

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

@KochetovNicolai KochetovNicolai force-pushed the low-cardinality-function-result-cache branch from c34d703 to d526859 Compare September 25, 2018 13:49
@KochetovNicolai KochetovNicolai changed the title [WIP] Added cache for low cardinality function result. Added cache for low cardinality function result. Sep 25, 2018
@alexey-milovidov alexey-milovidov merged commit b6e53d2 into master Sep 26, 2018
@@ -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)
Copy link
Member

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
Copy link
Member

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;
Copy link
Member

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.

@Felixoid Felixoid deleted the low-cardinality-function-result-cache branch April 10, 2022 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants