-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Support non-unique keys for dictionary column types #22839
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
Changes from all commits
adb5e88
b681491
f525d92
3c7bb7e
20a011b
14c1296
c5ab27b
9bce5c6
1217031
1c7f8cd
ed286ad
ff49295
b5c0f64
277840b
2d4373d
64d5acd
b9252c9
b79cbbe
08cc3cc
9b1c2c2
010a95b
df0882f
c379a9f
275c043
6489638
549df2f
27c1f2a
9cb3d3b
c38de88
0d182cb
e71a5bb
e9d45e5
b83ece0
b604531
f16be6d
410e759
de5e51b
d5a7508
60d17d3
d165781
b686565
cfd4dfa
9e952d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,6 +121,9 @@ std::unique_ptr<column> remove_unused_keys( | |
| * The indices are updated to reflect the position values of the new keys. | ||
| * Any indices pointing to removed keys sets those rows to null. | ||
| * | ||
| * Although duplicate keys are allowed, indices in the returned dictionary may | ||
| * only reference one of the duplicates. | ||
|
Comment on lines
+124
to
+125
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I read this 3 times before I started to understand it. What is guaranteed/preserved here? I think the number of keys in the output dictionary is It is hard to provide determinism and lossless conversion/transformation with the ambiguities introduced by duplicate keys. Maybe there's a better way to say this, or maybe the current state is fine.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We introduced non-determinism by no longer requiring sorted keys. |
||
| * | ||
| * @code{.pseudo} | ||
| * d1 = {keys=["a", "b", "c"], indices=[2, 0, 1, 2, 1]} | ||
| * d2 = set_keys(existing_dict, ["b","c","d"]) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.