arrow-ipc: Default to not preserving dict IDs#6788
Merged
alamb merged 2 commits intoapache:mainfrom Nov 30, 2024
Merged
Conversation
Contributor
|
The integration tests seem to be legitimately failing on this |
Contributor
Author
|
Is this the appropriate docs page to look at for trying to reproduce this locally? https://github.com/apache/arrow-rs/tree/main/arrow-integration-testing |
Contributor
Author
|
So diving in, it looks like ipc, and c-data work fine, it's just flight. And surprisingly even rust-to-rust seems broken, which is what I'm going to start with, by adding more tests to arrow-flight. |
63a1952 to
75ceb39
Compare
Previously the integration tests forced preserving dict IDs in some places and used the default in others. This worked fine previously because preserving dict IDs used to be the default, but it isn't anymore.
75ceb39 to
206f7f4
Compare
Contributor
Author
tustvold
approved these changes
Nov 27, 2024
Contributor
tustvold
left a comment
There was a problem hiding this comment.
Makes sense to me, I've labelled it an API change so it is rendered as a breaking change in the changelog
alamb
approved these changes
Nov 30, 2024
Contributor
alamb
left a comment
There was a problem hiding this comment.
This also makes sense to me too
Contributor
|
Thank you @brancz 🙏 |
Contributor
Author
|
Thank you!! |
Dandandan
pushed a commit
to coralogix/arrow-rs
that referenced
this pull request
Jul 2, 2025
* arrow-ipc: Default to not preserving dict IDs * arrow-integration-testing: Adapt to using default settings Previously the integration tests forced preserving dict IDs in some places and used the default in others. This worked fine previously because preserving dict IDs used to be the default, but it isn't anymore.
Dandandan
added a commit
to coralogix/arrow-rs
that referenced
this pull request
Jul 2, 2025
* arrow-ipc: Default to not preserving dict IDs * arrow-integration-testing: Adapt to using default settings Previously the integration tests forced preserving dict IDs in some places and used the default in others. This worked fine previously because preserving dict IDs used to be the default, but it isn't anymore. Co-authored-by: Frederic Branczyk <fbranczyk@gmail.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Which issue does this PR close?
Related to #5981
Rationale for this change
This is the first step towards removing the
dict_idfield as discussed in #5981. With this patch the default behavior changes to what the behavior will be once the field is fully removed.The previous behavior can still be restored by passing
with_preserve_dict_id(true), however, doing so is now deprecated and will be removed together with thedict_idin the next (March) DataFusion release.What changes are included in this PR?
Default to not preserving the dict ID from the schema field
dict_id.Are there any user-facing changes?
Not a breaking change to an API, but the default behavior changes.
@tustvold @alamb