junjunjd commented on code in PR #7901:
URL: https://github.com/apache/arrow-datafusion/pull/7901#discussion_r1374142052
##########
datafusion/common/src/scalar.rs:
##########
@@ -3419,8 +3492,8 @@ mod tests {
{
let scalar_result = left.add_checked(&right);
- let left_array = left.to_array();
- let right_array = right.to_array();
+ let left_array = left.to_array().expect("Failed to convert to array");
Review Comment:
I believe the backtrace will provide information on the test function. For
example, the following context is provided on failure
`thread 'scalar::tests::scalar_add_overflow_test' panicked at
datafusion/common/src/scalar.rs:3495:9:`
--
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]