junjunjd commented on code in PR #7901:
URL: https://github.com/apache/arrow-datafusion/pull/7901#discussion_r1378463124
##########
datafusion/common/src/scalar.rs:
##########
@@ -1646,10 +1691,14 @@ impl ScalarValue {
let array = scalars
.into_iter()
.map(|element: ScalarValue| match element {
- ScalarValue::Decimal256(v1, _, _) => v1,
- _ => unreachable!(),
+ ScalarValue::Decimal256(v1, _, _) => Ok(v1),
+ s => {
+ _internal_err!(
+ "Expected ScalarValue::Decimal256 element. Received
{s:?}"
+ )
+ }
Review Comment:
Same as above.
--
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]