voonhous opened a new issue, #19633:
URL: https://github.com/apache/hudi/issues/19633

   **Describe the problem**
   
   `HoodieProcedureFilterUtils.convertValueToInternal` converts array columns 
(`Seq` / `Array` / `java.util.List`) to a raw `Object[]` instead of Catalyst 
`ArrayData`. Evaluating any predicate touching an array column -- `size(...)`, 
`array_contains(...)`, even `isnotnull(col)` -- throws `ClassCastException` 
inside `BoundReference.eval`, which the per-row `Try` swallows to `false`, so 
every row is dropped. The `sort_array` / `array_size` entries in the 
function-resolution table are dead code. (Maps are unaffected: they go through 
`ArrayBasedMapData`.)
   
   **To reproduce**
   
   Pinned in `TestHoodieProcedureFilterUtils` ("converts array / decimal / 
binary / uuid / java-time columns") since #19161: `size(arrScala) >= 0` and 
`isnotnull(arrScala)` both return no rows.
   
   **Suggested fix**
   
   Wrap array values in `new GenericArrayData(...)` in 
`convertValueToInternal`, then flip the pinned assertions.
   


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

Reply via email to