-
Couldn't load subscription status.
- Fork 1k
Cast support for RunEndEncoded arrays #8589
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ca051e2
Implemented casting for RunEnd Encoding
rich-t-kid-datadog 60c52b4
Implemented casting for RunEnd Encoding
rich-t-kid-datadog 0a6d865
feat: Add Run-End Encoded array casting with overflow protection
rich-t-kid-datadog 8b434d4
feat: Add Run-End Encoded array casting with overflow protection
rich-t-kid-datadog 77cda81
Use type specific zero-copy comparisons in cast_to_run_end_encoded
vegarsti b666a97
Move tests in mod run_end_encoded_tests into mod tests
vegarsti 6eafcea
panic if REE in cast_to_run_end_encoded
vegarsti 3c2e837
Use unreachable macro
vegarsti d1e5120
Simplify some assertions
vegarsti 2358010
Extract populate_run_ends_and_values, which casts then iterates to id…
vegarsti 7ed2872
Add missing Float16 and Decimal types to can_cast_to_run_end_encoded
vegarsti 692f6ea
Use a macro for packing runs
vegarsti b8c0754
Use partition from arrow-ord to find runs
vegarsti bdcaa4b
Remove cast_options.safe = false
vegarsti e086d4c
Simplify variables in partition loop
vegarsti a16d555
Partition on cast_array, not array
vegarsti 82c384b
Support casting from dictionary types and add test for that
vegarsti 694814c
Remove can_cast_to_run_end_encoded
vegarsti 17f4f6f
Improve run_end_encoded_cast, cast_to_run_end_encoded
vegarsti 42c4044
Address comments on tests
vegarsti 2f2c5e6
Appease clippy
vegarsti 2a1f80f
Add the index in an out of range error message
vegarsti aab0084
Add apache license to pass RAT
alamb 5e43f67
Merge remote-tracking branch 'apache/main' into cast-run-end-encoded-…
alamb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think we are trying to keep the number of dependencies to a minimum
I see this is used to call
partitionwhich is clever but overly general. I think you can also partition a (single) column using eq and an offset to look for consecutive rows which are different.Something like
However, the
eqkernels is also inarrow-ordso I am not sure there is a way around itThere 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.
Oh, that's nice!
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.
Does it suffice here to file an issue for potentially getting rid of this dependency?
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.
The way I'm reading this is
eqmight be faster but won't get rid of the dependency, but getting rid of the dependency would be the best option. Is that correct?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.
Filed #8708 for getting rid of arrow-ord and #8707 for performance improvement