tabac opened a new issue, #21671: URL: https://github.com/apache/datafusion/issues/21671
### Describe the bug The `array_element`, `array_any_value` UDFs use a `ListArray`'s offsets to deduce that a row is Null. If the difference between to consecutive offsets is `0` then the row should be Null. This goes against the [Arrow spec](https://arrow.apache.org/docs/format/Columnar.html#variable-size-binary-layout) which allows positive slot lengths for Null rows. > It should be noted that a null value may have a positive slot length. That is, a null value may occupy a non-empty memory space in the data buffer. When this is true, the content of the corresponding memory space is undefined. ### To Reproduce _No response_ ### Expected behavior The `ListArray`'s null buffer should be used instead. ### Additional context _No response_ -- 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]
