Xuanwo commented on code in PR #6547:
URL: https://github.com/apache/arrow-rs/pull/6547#discussion_r1797062606
##########
arrow-cast/src/cast/mod.rs:
##########
@@ -8517,6 +8520,9 @@ mod tests {
assert!(decimal_arr.is_null(25));
assert!(decimal_arr.is_null(26));
assert!(decimal_arr.is_null(27));
+ assert_eq!("0.000", decimal_arr.value_as_string(28));
Review Comment:
What do you think of adding new tests like the following?
```
assert_eq!("00012345.000", decimal_arr.value_as_string(5));
```
Since we are not trim the prefix `0` anymore.
--
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]