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

   ### Purpose
   
   Chain table reads through a versioned catalog can return no data when the 
main branch has no snapshot, even though the snapshot and delta branches 
contain data. `createChainTable` sets the child tables' branch options but 
passes the parent `CatalogEnvironment` to both, so catalog snapshot requests 
still use the parent's branch identifier.
   
   Give each child table a catalog environment with its own snapshot or delta 
branch identifier, preserving the database and base table name. Environments 
without a catalog identifier are kept unchanged.
   
   ### Tests
   
   - `FileStoreTableFactoryTest`: verifies catalog snapshot routing and 
returned rows with and without an existing snapshot partition, with both legacy 
partition naming settings.
   - `ChainTableBranchReadWithRestCatalogTest`: verifies main-table reads 
through a REST catalog, merging snapshot and delta data and observing 
subsequent delta updates while main remains without snapshots.
   - Existing `FallbackReadFileStoreTableTest` and 
`CompactChainTableProcedureTest` regression suites.
   
   Validated locally with Java 8: targeted core tests and Spark 3.5 suites, 
with normal Maven checks enabled.
   


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