Jefffrey commented on PR #19415:
URL: https://github.com/apache/datafusion/pull/19415#issuecomment-3699673423

   > > Could you elaborate on this point? I'm having trouble seeing how it is 
related to the issue at hand 🤔
   > 
   > I was talking about the case of making the behaviour same as spark, for 
that we would need to return `NULL` itself rather than current behaviour of 
empty arrays. Just to be sure, I also checked 
[documentation](https://docs.rs/arrow/latest/arrow/array/trait.Array.html#implementors)
 of `Array` it is not implemented by 
[`Null`](https://docs.rs/arrow/latest/arrow/datatypes/enum.DataType.html#variant.Null)
   > 
   > Am I still missing your question?
   
   I still don't quite follow; what I mean is we return a null value instead of 
an empty array value. Keep in mind we are dealing with ListArrays, so each 
element is a list itself (or null). There is nothing about 
`make_scalar_function` or the `Array` trait that should prevent this.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to