paleolimbot commented on code in PR #8350:
URL: https://github.com/apache/arrow-rs/pull/8350#discussion_r2353067179
##########
arrow-schema/src/field.rs:
##########
@@ -378,10 +381,14 @@ impl Field {
#[inline]
pub fn set_data_type(&mut self, data_type: DataType) {
self.data_type = data_type;
+ self.clear_extension_type();
Review Comment:
I was initially worried that this would obliterate metadata that previously
had been propagated, but I couldn't find any existing usage of this function (I
don't even think it's tested in arrow-rs) and so I think it's probably not a
problem.
--
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]