alamb commented on code in PR #7497:
URL: https://github.com/apache/arrow-rs/pull/7497#discussion_r2087032070


##########
arrow-schema/src/field.rs:
##########
@@ -351,7 +384,7 @@ impl Field {
     /// assert_eq!(field.data_type(), &DataType::Utf8);
     /// ```
     pub fn with_data_type(mut self, data_type: DataType) -> Self {
-        self.data_type = data_type;
+        self.set_data_type(data_type);

Review Comment:
   🤔  -- at the very least we should document it. 
   
   I think we should make a separate (maybe follow on) PR with that behavior 
change so it is easier to evaluate (rather than intermix it with the other 
changes in this PR)



-- 
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