You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "luoyuxia (via GitHub)" <gi...@apache.org> on 2026/04/23 02:47:49 UTC

[I] [flink] Lake filters are not pushed down for non-partitioned scans [fluss]

luoyuxia opened a new issue, #3168:
URL: https://github.com/apache/fluss/issues/3168

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar.
   
   ### Fluss version
   
   main (development)
   
   ### Please describe the bug 🐞
   
   `FlinkTableSource.applyFilters(...)` only forwards converted predicates to `lakeSource.withFilters(...)` inside the `isPartitioned()` branch.
   
   That means a non-partitioned table with data lake enabled never pushes SQL filters down to the lake source, even when the predicates are convertible and the underlying lake format supports filter pushdown. In practice, batch reads in `FULL` mode fall back to Flink-side filtering for the lake portion of the scan instead of letting the lake source prune files or rows earlier.
   
   A minimal reproduction is:
   
   1. Create a non-partitioned Fluss table with data lake enabled.
   2. Run a batch query in `FULL` startup mode with filters such as `region = 'HangZhou'` or `value > 1000`.
   3. Observe that `FlinkTableSource` never calls `lakeSource.withFilters(...)` for that table, because the pushdown path is guarded by `isPartitioned()`.
   
   Expected behavior:
   
   Convertible filters should be pushed to the lake source whenever `lakeSource != null`, regardless of whether the table is partitioned.
   
   Actual behavior:
   
   Only partitioned tables attempt lake filter pushdown.
   
   ### Solution
   
   Move the lake filter pushdown logic out of the partition-only branch so that all lake-backed scans can attempt `lakeSource.withFilters(...)`. Keep the existing fallback behavior when the lake source rejects some predicates.
   
   ### Are you willing to submit a PR?
   
   - [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: issues-unsubscribe@fluss.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [flink] Lake filters shoud be pushed down for non-partitioned scans [fluss]

Posted by "luoyuxia (via GitHub)" <gi...@apache.org>.
luoyuxia closed issue #3168: [flink] Lake filters shoud be pushed down for non-partitioned scans
URL: https://github.com/apache/fluss/issues/3168


-- 
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: issues-unsubscribe@fluss.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org