alamb commented on code in PR #3691:
URL: https://github.com/apache/arrow-datafusion/pull/3691#discussion_r985968163
##########
datafusion/common/src/pyarrow.rs:
##########
@@ -43,16 +43,16 @@ impl PyArrowConvert for ScalarValue {
let array = factory.call1((args, typ))?;
// convert the pyarrow array to rust array using C data interface
- let array = array.extract::<ArrayData>()?;
- let scalar = ScalarValue::try_from_array(&array.into(), 0)?;
+ let array = arrow::array::make_array(ArrayData::from_pyarrow(array)?);
Review Comment:
Needed due to changes in https://github.com/apache/arrow-rs/pull/2769
--
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]