adiranjan25 commented on issue #19194:
URL: https://github.com/apache/iceberg/issues/19194#issuecomment-7269256294

   Hi @Yibo-Dong,
   
   Thanks for reporting this and providing a concise reproduction. I'm 
interested in investigating and contributing a fix.
   
   From an initial review of the Spark 3.5 integration, RTAS appears to use a 
catalog-level `replaceTransaction()` through `SparkCatalog.stageReplace()`, 
while WAP branch routing and snapshot staging are handled separately in the 
Spark write path.
   
   This suggests that the replacement transaction may update `main` 
independently of the WAP-targeted data write.
   
   I'll start with regression coverage for both `spark.wap.branch` and 
`spark.wap.id`, checking branch references, snapshot lineage, and row 
visibility before and after RTAS.
   
   One question for maintainers: should RTAS under WAP be supported as a 
branch-scoped replacement, including its metadata changes, or should this 
combination fail explicitly before making changes to the table?
   
   I want to avoid introducing a fix that protects data rows but leaves schema 
or other table metadata inconsistent.
   
   Thanks,
   Aditya Ranjan


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