taoran92 opened a new issue, #1455:
URL: https://github.com/apache/paimon-rust/issues/1455

   ### Search before asking
   
   - [x] I searched in the 
[issues](https://github.com/apache/paimon-rust/issues) and found nothing 
similar.
   
   ### Motivation
   
   A branch may contain only some of a table's partitions. Rust callers need a 
way to opt in to reading missing partitions from the branch named by 
`scan.fallback-branch`. By default, a batch read should still return only the 
current branch's data.
   
   For example, using the filesystem catalog:
   
   1. Create an append-only table with columns `(id INT, pt INT)`, partition it 
by `pt`, and set `scan.fallback-branch=backup`.
   2. Create the `backup` branch before writing any rows. Write `(1, 10)` to 
`main` and `(99, 10)`, `(2, 20)` to `backup`.
   3. Batch-read the latest snapshot of `main` using the Rust API.
   
   Today the read returns only `(1, 10)`. With fallback explicitly enabled, it 
should also return `(2, 20)` because partition `20` is missing from `main`. 
Partition `10` should come entirely from `main`, so filtering for `id = 99` 
should return no rows.
   
   ### Willingness to contribute
   
   - [x] I'm willing to submit a PR!
   


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