viirya commented on code in PR #2247: URL: https://github.com/apache/arrow-rs/pull/2247#discussion_r934027894
########## arrow/src/array/array_decimal.rs: ########## @@ -219,6 +222,16 @@ pub trait BasicDecimalArray<T: BasicDecimal, U: From<ArrayData>>: let array_data = unsafe { builder.build_unchecked() }; U::from(array_data) } + + /// The default precision and scale used when not specified. + fn default_type() -> DataType { + // Keep maximum precision Review Comment: trait function cannot be `const`. I changed it to be a `const` value. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org