jayzhan211 commented on issue #10424: URL: https://github.com/apache/datafusion/issues/10424#issuecomment-2106058219
Do you mean df-python always panics if `stride` is not given? ``` #[pyfunction] #[pyo3(signature = (array, begin, end, stride = 1))] fn array_slice(array: PyExpr, begin: PyExpr, end: PyExpr, stride: Option<i64>) -> PyExpr { let stride = ScalarValue::Int64(stride); let stride = Expr::Literal(stride); datafusion_functions_array::expr_fn::array_slice(array.into(), begin.into(), end.into(), stride) .into() } ``` -- 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-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org