Re: [I] Result from `array_has` depends on runtime array type [datafusion]

2025-06-20 Thread via GitHub
bert-beyondloops commented on issue #16459: URL: https://github.com/apache/datafusion/issues/16459#issuecomment-2992321190 As I understood, this issue is triggered when the whole ListVector has no item entries at all. So every "row" has a null or empty list.(empty offsets buffer) -- Th

Re: [I] Result from `array_has` depends on runtime array type [datafusion]

2025-06-20 Thread via GitHub
pepijnve commented on issue #16459: URL: https://github.com/apache/datafusion/issues/16459#issuecomment-2992019281 Probably a duplicate of #16474 -- 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 t

Re: [I] Result from `array_has` depends on runtime array type [datafusion]

2025-06-20 Thread via GitHub
pepijnve commented on issue #16459: URL: https://github.com/apache/datafusion/issues/16459#issuecomment-2991278170 Stepping through this with the debugger, it seems like a string view vector containing a `null` array is treated as a vector of length `0` (or at least `is_empty() == true`) wh

Re: [I] Result from `array_has` depends on runtime array type [datafusion]

2025-06-20 Thread via GitHub
alamb commented on issue #16459: URL: https://github.com/apache/datafusion/issues/16459#issuecomment-2991061316 I think we went back and forth on this for a while -- if you try and dig into it I suspect you'll find yourself wrapped up in the (not great) type coercion logic that could really

[I] Result from `array_has` depends on runtime array type [datafusion]

2025-06-19 Thread via GitHub
pepijnve opened a new issue, #16459: URL: https://github.com/apache/datafusion/issues/16459 ### Describe the bug When evaluating the expression `array_has(null, 'foobar')`, the result is dependent on the runtime string array type. As demonstrated by the test case below, when using a