badalprasadsingh opened a new issue, #2520:
URL: https://github.com/apache/iceberg-go/issues/2520

   ### Apache Iceberg version
   
   main (development)
   
   ### Please describe the bug 🐞
   
   rowdelta's commit never checks that an added deletion vector has the same 
partition spec and partition values as the data file it references. The spec 
requires them to match. Easy way to hit this: after partition evolution, a 
caller builds the DV with `dv.DVWriter` using the current spec instead of the 
data file's older spec
   
   the commit succeeds, and iceberg-go scans still apply the DV because they 
match DVs by path only. We should fail scans of that file: `Mismatched 
partition specs (1, 0) for delete file ... metadata is corrupted`
   
   the same gap affects v2 position deletes that set _referenced_data_file_, 
there, iceberg-go's own scan fails (since #2471).
   
   fix: in Commit, compare each delete file's spec ID and partition with its 
data file's, and reject a mismatch


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