alamb commented on a change in pull request #9232: URL: https://github.com/apache/arrow/pull/9232#discussion_r563278609
########## File path: rust/arrow/src/compute/kernels/cast.rs ########## @@ -443,6 +456,13 @@ pub fn cast(array: &ArrayRef, to_type: &DataType) -> Result<ArrayRef> { ))), }, + // start decimal casts + (Int8, Decimal(p, s)) => cast_numeric_to_decimal::<Int8Type>(array, *p, *s), + (Int16, Decimal(p, s)) => cast_numeric_to_decimal::<Int16Type>(array, *p, *s), + (Int32, Decimal(p, s)) => cast_numeric_to_decimal::<Int32Type>(array, *p, *s), + (Int64, Decimal(p, s)) => cast_numeric_to_decimal::<Int64Type>(array, *p, *s), + // end numeric casts Review comment: I think this means to me ```suggestion // end decimal casts ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org