arrow-ipc: Remove all abilities to preserve dict IDs #7940
Merged
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?
Does not yet close, but contributes towards:
dict_id
equality in field merging #6356dict_id
fromarrow_schema::field::Field
and make dictionary IDs an internal implementation detail of flight encoding/decoding #5981Rationale for this change
See the above issues. And this is a follow up to
dict_id
#6873This was also split out from: #7929
What changes are included in this PR?
This removes the API to allow preserving
dict_id
set in theSchema
'sField
within arrow-ipc and arrow-flight. This is in an effort to remove thedict_id
field entirely and make it an IPC/flight-only concern.Are these changes tested?
Yes, all existing tests continue to pass.
Are there any user-facing changes?
Yes, these previously (in 54.0.0) deprecated functions/fields are removed:
arrow_ipc::DictionaryTracker.set_dict_id
arrow_ipc::DictionaryTracker::new_with_preserve_dict_id
arrow_ipc::IpcWriteOptions.with_preserve_dict_id
arrow_ipc::IpcWriteOptions.preserve_dict_id
(function and field)arrow_ipc::schema_to_fb
arrow_ipc::schema_to_bytes