Skip to content

Dynamic filters with partition columns do not get pushed down through DataSourceExec #18171

Closed

Description

@feniljain

Describe the bug

For queries like this:

select sum(ss_quantity) from store_sales, date_dim where ss_sold_date_sk=d_date_sk and d_year='2001';

where in store_sales table, ss_sold_date_sk is a partition column. For these queries, dynamic filter pushdown does not cross try_pushdown_filters of DataSourceExec because we don't pushdown filters containing filter columns here.

We do another round of file pruning for dynamic filters here in FileOpener, this does skip files.

Although it would be better to update partitions to be read using dynamic filters bounds, but this is enough for filtering them down for now at least.

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Activity

  1. added theissue type on Oct 20, 2025
  2. added a commit that references this issue on Oct 29, 2025
    dfba228
  3. added a commit that references this issue on Nov 2, 2025
    fe3426c
  4. added a commit that references this issue on Nov 11, 2025
    9b33c92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions