-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Core: Fix null partitions in PartitionSet #9248
Core: Fix null partitions in PartitionSet #9248
Conversation
BY_DATA_CATEGORY_BUCKET_SPEC); | ||
|
||
@Test | ||
public void testGet() { |
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.
There would be more tests in coming PRs.
@@ -274,9 +274,11 @@ public void testKeyAndEntrySetEquality() { | |||
|
|||
map1.put(BY_DATA_SPEC.specId(), Row.of("aaa"), "v1"); | |||
map1.put(BY_DATA_SPEC.specId(), Row.of("bbb"), "v2"); | |||
map1.put(UNPARTITIONED_SPEC.specId(), null, "v3"); |
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.
Our PartitionMap
uses PartitionSet
for keySet()
. This did not work previously.
378e546
to
4fb7a02
Compare
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.
LGTM! Thanks for cleaning this up
Thanks, @RussellSpitzer! |
This PR fixes usage of
null
partitions inPartitionSet
. Previously, it was possible to store null partitions for unpartitioned specs but we could not retrieve them back. The set returnedfalse
that was wrong.