You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/05 20:07:38 UTC

[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #3691: Upgrade `arrow` `parquet` and `arrow-flight` to 24.0.0

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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org