luoyuxia opened a new pull request, #3396:
URL: https://github.com/apache/fluss/pull/3396

   ## Summary
   - `getBucketsWithoutL0AndWithL0()` passed `SCAN_SNAPSHOT_ID` and 
`BATCH_SCAN_MODE` via table options to `store().newScan()`, but these options 
are only consumed by table-level scans (`DataTableBatchScan`), not by 
store-level scans (`AbstractFileStoreScan`). This means the scan always hit the 
latest snapshot instead of the specified one.
   - Fix by using the direct `.withSnapshot(snapshot)` API on `FileStoreScan`, 
consistent with `getBucketsWithFlushedL0()` in the same file.
   - Remove unused `CoreOptions` import.
   
   ## Test Plan
   - Existing tests cover the affected code paths 
(`DvTableReadableSnapshotRetrieverTest`, `FlinkUnionReadDvTableITCase`)
   - The behavioral change is that the scan now correctly targets the specified 
snapshot instead of always scanning the latest one
   
   🤖 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