You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by tu...@apache.org on 2023/01/18 12:49:27 UTC

[arrow-rs] branch master updated: Update pyarrow method call to avoid warning (#3544)

This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new 40837a87c Update pyarrow method call to avoid warning (#3544)
40837a87c is described below

commit 40837a87c6a7ae177298fe3fcc0e83aaf678640e
Author: Frank <35...@users.noreply.github.com>
AuthorDate: Wed Jan 18 20:49:21 2023 +0800

    Update pyarrow method call to avoid warning (#3544)
    
    * Update pyarrow method call to avoid warning
    
    * resolve problem
---
 arrow/src/pyarrow.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arrow/src/pyarrow.rs b/arrow/src/pyarrow.rs
index 5ddc3105a..4355d2e47 100644
--- a/arrow/src/pyarrow.rs
+++ b/arrow/src/pyarrow.rs
@@ -196,7 +196,8 @@ impl PyArrowConvert for RecordBatch {
 
         let module = py.import("pyarrow")?;
         let class = module.getattr("RecordBatch")?;
-        let record = class.call_method1("from_arrays", (py_arrays, py_schema))?;
+        let record = class
+            .call_method1("from_arrays", (py_arrays, None::<PyObject>, py_schema))?;
 
         Ok(PyObject::from(record))
     }