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 hashing in BlackHoleNodePartitioningProvider #16599

Conversation

findepi
Copy link
Member

@findepi findepi commented Mar 16, 2023

It ignored position and didn't check for null, so could fail.

Even if this doesn't matter for blackhole connector, the code could be used as inspiration for other bucketing function implementations.

It ignored `position` and didn't check for null, so could fail.

Even if this doesn't matter for blackhole connector, the code could be
used as inspiration for other bucketing function implementations.
@@ -392,7 +392,6 @@ private IntArrayList[] partitionNotNullPositions(Page page, int startingPosition
partitionPositions[partitionPerPosition[position]].add(position);
}

Copy link
Member

Choose a reason for hiding this comment

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

extra newline

@findepi findepi force-pushed the findepi/fix-hashing-in-blackholenodepartitioningprovider-26403b branch from bb34e1f to 50744b6 Compare March 17, 2023 16:22
@findepi findepi merged commit 6939748 into trinodb:master Mar 17, 2023
@findepi findepi deleted the findepi/fix-hashing-in-blackholenodepartitioningprovider-26403b branch March 17, 2023 16:22
@github-actions github-actions bot added this to the 411 milestone Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants