Zouxxyy opened a new pull request, #7860:
URL: https://github.com/apache/paimon/pull/7860

   ### Purpose
   
   Support Spark replace-table flows for Paimon tables while preserving table 
history where possible.
   
   This change adds staged replace support for `REPLACE TABLE` and `CREATE OR 
REPLACE TABLE ... AS SELECT`, using truncate plus schema replacement for 
compatible FileStore tables so old snapshots remain available for time travel. 
It also falls back to drop-and-create when the source or target is not a Paimon 
table, handles SparkGenericCatalog provider checks, and documents the Spark SQL 
behavior.
   
   ### Tests
   
   Added coverage for catalog-level replace table, Spark SQL replace table, 
create-or-replace-as-select, incompatible schema replacement, table existence 
errors, provider/table type fallback, and time-travel reads after replace.


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

Reply via email to