ayushtkn opened a new issue, #14611:
URL: https://github.com/apache/iceberg/issues/14611

   ### Apache Iceberg version
   
   None
   
   ### Query engine
   
   None
   
   ### Please describe the bug 🐞
   
   The initialDefault value in case of a Struct column is always null, but its 
fields can have default value, The Iceberg layer allows to set & store 
initialDefault values for the primitive fields of a Struct type. But doesn't 
honor them while reading.
   
   For Paquet:
   
https://github.com/apache/iceberg/blob/c02d4676f38b834d6c672bb53abd34b07ebfddb9/parquet/src/main/java/org/apache/iceberg/data/parquet/BaseParquetReaders.java#L289-L292
   
   This code block checks whether the initialDefault is not null, for Struct 
type it will always be `null` but its fields can have default values.
   
   It should check for the nested fields in case of struct or not allow having 
initialDefault values for sub fields of Struct type:
   
   A same screenshot:
   
   <img width="2056" height="1430" alt="Image" 
src="https://github.com/user-attachments/assets/c0b2fcba-9ced-484a-b47c-34270d3d9833";
 />
   
   The field Initial Default is `null` but the nested fields like `x` have an 
initial default of `100`, but this gets ignored
   
   ### Willingness to contribute
   
   - [ ] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


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