adiranjan25 commented on issue #19194: URL: https://github.com/apache/iceberg/issues/19194#issuecomment-7269357039
Quick update on my investigation: I have independently reproduced the reported behavior on upstream main (`f063ce667cb76cacecb28ea1836d691541e01c00`) using Spark 3.5 with Scala 2.12. I added two parameterized regression tests to `TestCreateTableAsSelect`: - `testRTASWithWapBranch` - `testRTASWithWapId` Both tests were executed against three catalog configurations: - Hive SparkCatalog - Hadoop SparkCatalog - SparkSessionCatalog All six test cases failed. The tests verify that a valid current snapshot exists before RTAS and that the main snapshot must remain unchanged when WAP is active. The observed failure is: ``` java.lang.AssertionError: [RTAS with WAP must preserve the current main snapshot] Expecting actual not to be null ``` The failure indicates that the replacement operation leaves the table without a current main snapshot, despite the WAP configuration. I am now tracing the interaction between the catalog replacement transaction and WAP-specific snapshot commit handling. Before implementing the fix, I would appreciate maintainer guidance on whether RTAS with WAP should support isolated replacement semantics or be explicitly rejected before any table metadata changes occur. The key invariant is that an unpublished WAP operation must not unintentionally invalidate the current main snapshot. -- 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]
