LuciferYang opened a new issue, #13715: URL: https://github.com/apache/gluten/issues/13715
`FlinkRowToVLVectorConvertor.fromRowData` builds the Arrow vectors with `ArrowVectorWriter`. When it writes a null value, `BaseVectorWriter` only clears the validity bit. For a ROW, the field writers are advanced only when a non-null row is written, so after a null row each field vector is one row behind the struct vector. A top-level column is written one row at a time, but array elements and map values go through one writer, so the shift shows up there. For an `ARRAY<ROW<x INT, y STRING>>` value `[(1, 'a'), NULL, (2, 'b'), (3, 'c')]`, the element at index 2 reads back as `(3, 'c')`. A null ROW field inside a non-null element shifts the same way: for `ARRAY<ROW<r ROW<x INT>>>` with `[(NULL), ((5))]`, the second element's `r.x` reads back as null. v1.8.0-rc1 has the same code. This issue was written with the assistance of AI (Claude Opus). -- 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]
