junjunjd commented on code in PR #7901:
URL: https://github.com/apache/arrow-datafusion/pull/7901#discussion_r1374109555
##########
datafusion/common/src/scalar.rs:
##########
@@ -3468,22 +3541,30 @@ mod tests {
}
// decimal scalar to array
- let array = decimal_value.to_array();
+ let array = decimal_value
+ .to_array()
+ .expect("Failed to convert to array");
Review Comment:
I think it makes sense to use `.expect` here so that we can have more
information on test failure. See my other comment
https://github.com/apache/arrow-datafusion/pull/7901#issuecomment-1780426607
--
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]