alamb commented on code in PR #11807:
URL: https://github.com/apache/arrow-rs/pull/11807#discussion_r4350121185
##########
arrow-array/src/builder/primitive_run_builder.rs:
##########
@@ -108,6 +108,20 @@ where
prev_run_end_index: 0,
}
}
+
+ /// Overrides the data type of the values child array.
+ ///
+ /// By default, `V::DATA_TYPE` is used (via [`PrimitiveBuilder`]). This
+ /// allows setting the timezone of a Timestamp, the precision & scale of a
+ /// Decimal, etc.
+ ///
+ /// # Panics
+ ///
+ /// This method panics if `values_builder` rejects `data_type`.
+ pub fn with_data_type(mut self, data_type: arrow_schema::DataType) -> Self
{
Review Comment:
👍
--
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]