Skip to content

Commit

Permalink
add default stride of None back to array_slice
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-J-Ward committed Jun 14, 2024
1 parent 06ecb27 commit 995171a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ fn list_indexof(array: PyExpr, element: PyExpr, index: Option<i64>) -> PyExpr {
}

#[pyfunction]
#[pyo3(signature = (array, begin, end, stride = None))]
fn array_slice(array: PyExpr, begin: PyExpr, end: PyExpr, stride: Option<PyExpr>) -> PyExpr {
datafusion_functions_array::expr_fn::array_slice(
array.into(),
Expand All @@ -194,6 +195,7 @@ fn array_slice(array: PyExpr, begin: PyExpr, end: PyExpr, stride: Option<PyExpr>
}

#[pyfunction]
#[pyo3(signature = (array, begin, end, stride = None))]
fn list_slice(array: PyExpr, begin: PyExpr, end: PyExpr, stride: Option<PyExpr>) -> PyExpr {
// alias of array_slice
array_slice(array, begin, end, stride)
Expand Down

0 comments on commit 995171a

Please sign in to comment.