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

   ### Purpose
   
   Fix filtered reads after `CREATE OR REPLACE TABLE AS SELECT` with an 
incompatible nested type replacement.
   
   The core issue is that `AbstractFileStoreScan` still applied stats filtering 
when collecting deleted manifest entries during ADD/DELETE merge. After RTAS 
changed a column from a primitive type to an incompatible nested type, those 
deleted-file stats could be evolved against the latest schema and fail during 
planning.
   
   This change skips stats filtering for deleted entries while keeping stats 
pruning for live added files. It also adds regressions in both core and spark 
SQL coverage.
   
   ### Tests
   
   - `mvn -pl paimon-core -am -Pfast-build -DfailIfNoTests=false 
-Dtest=DataEvolutionTableTest#testReplaceTableFilterIgnoresDeletedFileStatsWithIncompatibleType
 test`
   - `mvn -pl paimon-spark/paimon-spark-3.5 -Pspark3,fast-build 
-DfailIfNoTests=false -DwildcardSuites=org.apache.paimon.spark.sql.DDLTest 
-Dtest=none test`
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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