yyanyy opened a new issue #2542:
URL: https://github.com/apache/iceberg/issues/2542


   Stem from this comment: 
https://github.com/apache/iceberg/pull/2521#issuecomment-828793923
   
   We had a NPE bug (#2405) caused by reading a newly introduced field as  
`boolean`, which assigns null to this `boolean` field when reading old tables. 
While Iceberg has backward compatibility tests to test reading V1 tables, this 
field is introduced for all specs, and thus when creating V1 table for testing, 
this field will still be populated. NPE only occurs in a wider setting - during 
table commits (fixed in #2495) or reading manifest table (fixed in #2521). 
   
   I think to prevent this from happening in future, we may need to introduce a 
mechanism that creates table not through Iceberg code itself, so that the new 
fields introduced to the spec can continue to be null. The comment link above 
describes a proposal to achieve it but there might be better approaches. 


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

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