Consider clearing extension type metadata when modifying Field::data_type
Open
arrow
- Dominant language
- Rust
- Stars
- 3.6k
- Forks
- 1.3k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 167
Description
I missed this when adding extension type methods, but perhaps we should check if a field has extension type information when updating the data type, and if it does, drop the extension type (because we can't validate that the new data type is supported).
_Originally posted by @mbrobbel in https://github.com/apache/arrow-rs/pull/7497#discussion_r2086981702_
Contributor guide
Research direction
Start from the Field::data_type update path and the extension type methods referenced in the issue. Check how extension type information is stored and cleared when the data type changes; done means an updated data type cannot retain unsupported extension metadata.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100