Zouxxyy opened a new issue, #11803:
URL: https://github.com/apache/gluten/issues/11803

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   # Description
   
   Velox parquet writer unconditionally sets all struct fields as OPTIONAL 
(nullable), even when Spark schema specifies REQUIRED. This breaks Spark's 
variant binary format validation.
   
   Root cause:
   
   RowType has no nullability → exportToArrow() sets ARROW_FLAG_NULLABLE on all 
fields → Arrow Parquet Writer writes OPTIONAL → Spark convertVariantField 
expects REQUIRED → error.
   
   # Affected tests
   
   SPARK-47546: valid variant binary
   SPARK-47546: invalid variant binary
   
   ### Gluten version
   
   _No response_
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   ```bash
   
   ```


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