LuciferYang opened a new pull request, #13716:
URL: https://github.com/apache/gluten/pull/13716

   ## What changes are proposed in this pull request?
   
   `ArrowVectorWriter` handled a null value by clearing the validity bit only. 
A ROW's field writers are advanced only for non-null rows, so after a null ROW 
inside an ARRAY or MAP, the fields of every later element were read from the 
wrong index.
   
   `BaseVectorWriter` now writes nulls through an overridable `setNull`, and 
`StructVectorWriter.setNull` also writes a null to each field, so the field 
vectors stay as long as the struct vector.
   
   v1.8.0-rc1 has the same code. gluten-flink is not built by the release 
scripts, so this doesn't block 1.8.0.
   
   Fixes #13715.
   
   ## How was this patch tested?
   
   Added `ArrowVectorWriterTest`: null ROW elements in an ARRAY and as MAP 
values, with primitive, ARRAY and nested ROW fields; a null ROW field inside a 
non-null element; and a top-level null ROW. They fail without the fix. Added a 
round trip through Velox to `FlinkRowToVLVectorConvertorTest` for an ARRAY with 
a null ROW element.
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Yes. Generated-by: 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]

Reply via email to