Skip to content

Commit

Permalink
g
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Aug 13, 2021
1 parent 5d3eb09 commit 24cef6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arrow-pyarrow-integration-testing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ fn substring(array: ArrayData, start: i64) -> PyResult<ArrayData> {

/// Returns the concatenate
#[pyfunction]
fn concatenate(array: ArrayData) -> PyResult<ArrayData> {
fn concatenate(array: ArrayData, py: Python) -> PyResult<PyObject> {
let array = ArrayRef::from(array);

// concat
let array = kernels::concat::concat(&[array.as_ref(), array.as_ref()])
.map_err(PyO3ArrowError::from)?;

Ok(array.data().to_owned())
array.to_pyarrow(py)
}

#[pyfunction]
Expand Down

0 comments on commit 24cef6f

Please sign in to comment.