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

append_many for Dictionary builders #6529

Closed
adriangb opened this issue Oct 9, 2024 · 1 comment · Fixed by #6534
Closed

append_many for Dictionary builders #6529

adriangb opened this issue Oct 9, 2024 · 1 comment · Fixed by #6534
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog

Comments

@adriangb
Copy link
Contributor

adriangb commented Oct 9, 2024

I have some data that I know is very repeated because it's essentially denormalized data, so the denormalized column is repeated for many rows. Because of this I'm using a dictionary, but I find myself forced into calling append_value in a loop to add the value multiple times. Under the hood this is going to hash it, find that it exists and append to the keys. I'd like a way to skip the extra hashing and instead add the value repeated n times.

I realize this can also be done via run encoding but I think this would be a simple and flexible API to add for dictionaries.

@adriangb adriangb added the enhancement Any new improvement worthy of a entry in the changelog label Oct 9, 2024
@alamb alamb added the arrow Changes to the arrow crate label Oct 20, 2024
@alamb
Copy link
Contributor

alamb commented Oct 20, 2024

label_issue.py automatically added labels {'arrow'} from #6534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants