kccrcodes commented on issue #19117:
URL: https://github.com/apache/iceberg/issues/19117#issuecomment-7151200771

   Quick update: I tried the writer-side approach above and it still corrupts 
the table. The delete file gets the right partition value, but because the 
dropped source column's partition field is now typed `unknown`, the manifest 
entry stores it as null, so the read fails with the same "Mismatched partition 
tuples" error. Fixing that properly would need a core change.
   
   So for now I've gone with a safe fallback in Spark 4.2: if a merge-on-read 
DELETE/UPDATE/MERGE would touch live data files in a spec whose fields are 
missing from the unified partition type, it runs as copy-on-write for that 
operation (with a warning), and switches back to merge-on-read once those files 
are rewritten. Regression tests cover UPDATE, DELETE and MERGE in both modes, 
format v2 and v3. Happy to switch to failing with a clear error instead if 
you'd prefer that.


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