Michael-J-Ward commented on issue #10424:
URL: https://github.com/apache/datafusion/issues/10424#issuecomment-2101111873

   > what is your ideal outcome? That the UDF function can take three arguments 
(and default the fourth value to a constant 1)?
   
   I would expect that there exists some value for  `stride = Expr` (likely 
`Expr::Null` or `Expr::Int64(None)`) such that the behavior of calling 
`expr_fn::array_slice(array, begin, end, stride)` matches the behavior of 
calling the SQL api **without stride**    `select * from array_slice(array, 
begin, end)`.
   
   That way `datafusion-python` can map `stride` to that value when a user 
calls `f.array_slice(col, literal(2), literal(4), stride=None)`
   


-- 
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

Reply via email to