mbrobbel opened a new pull request, #8350:
URL: https://github.com/apache/arrow-rs/pull/8350

   # Which issue does this PR close?
   
   - Closes #8030.
   
   # Rationale for this change
   
   As discussed in the linked issue we want to remove the `experimental` 
warning from the `extension` module.
   
   When adding extension type information via the `Field` methods, 
`ExtensionType::supports_datatype` is used to validate the `Field` datatype is 
compatible with the given extension type. When users change the `Field` 
datatype, it's not clear if this is still true, so this PR proposes to remove 
the extension type information when changing datatype information.
   
   # What changes are included in this PR?
   
   Adds two `Field` methods:
   - `Field::clear_extension_type`
   - `Field::without_extension_type`
   
   These methods are used when changing data types via `Field::set_data_type` 
and `Field::with_data_type`.
   
   # Are these changes tested?
   
   Yes, CI.
   
   # Are there any user-facing changes?
   
   Yes, `Field::set_data_type` and `Field::with_data_type` now clear extension 
type information from the `Field` metadata.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to