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

Fix incorrect partition pruning when there is a nullable partition #38946

Merged
merged 3 commits into from Jul 19, 2022

Conversation

amosbird
Copy link
Collaborator

@amosbird amosbird commented Jul 7, 2022

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in official stable or prestable release)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Fix incorrect partition pruning when there is a nullable partition. This fixes #38941

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

@robot-ch-test-poll robot-ch-test-poll added the pr-bugfix Pull request with bugfix, not backported by default label Jul 7, 2022
@KochetovNicolai KochetovNicolai self-assigned this Jul 7, 2022
{
WriteBufferFromOwnString buf;
part.partition.serializeText(part.storage, buf, FormatSettings{});
LOG_TRACE(&Poco::Logger::get("PartitionPruner"), "Partition {} gets pruned", buf.str());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure we want to have this in logs, but let it be

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's one per partition. It seems acceptable...

@alexey-milovidov
Copy link
Member

Ok.

Did not know we have an option for Nullable partition key :(

@KochetovNicolai KochetovNicolai merged commit d0db713 into ClickHouse:master Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a nullable column as partition key, the partition column contains null value can't be selected out
4 participants