Skip to content

Conversation

@feniljain
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

Included in the issue

Are these changes tested?

While I have tested this on local with a local TPCDS-like dataset, I would appreciate if someone provides me a good way to add tests for the same 😅

@github-actions github-actions bot added the datasource Changes to the datasource crate label Oct 20, 2025
@feniljain feniljain force-pushed the feat-dynamic-filter-join-partition-col branch from 2e64a1e to 1a02eae Compare October 20, 2025 09:38
@feniljain feniljain changed the title feat: allow pushdown of dynamic filters with expr having partition cols feat: allow pushdown of dynamic filters having partition cols Oct 20, 2025
@feniljain feniljain force-pushed the feat-dynamic-filter-join-partition-col branch 4 times, most recently from 115d3c1 to 2d8fb9c Compare October 20, 2025 10:08
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Oct 22, 2025
@feniljain feniljain force-pushed the feat-dynamic-filter-join-partition-col branch 2 times, most recently from e58d9ec to 2c1ee6e Compare October 22, 2025 06:20
@feniljain feniljain requested a review from adriangb October 22, 2025 07:01
@adriangb
Copy link
Contributor

adriangb commented Oct 22, 2025

@feniljain mind if I push 7818a42c7 to your branch / this PR?

@feniljain
Copy link
Contributor Author

feniljain commented Oct 22, 2025

Sure thing! No worries, thanks for the patch :)

@github-actions github-actions bot added the core Core DataFusion crate label Oct 23, 2025
@adriangb adriangb force-pushed the feat-dynamic-filter-join-partition-col branch from 8290691 to 05284cf Compare October 24, 2025 14:12
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Oct 24, 2025
@adriangb adriangb force-pushed the feat-dynamic-filter-join-partition-col branch from 22079c6 to 503a5d8 Compare October 27, 2025 01:52
@adriangb
Copy link
Contributor

@feniljain thanks for your patience. I had to resolve some conflicts but I think this is looking good now. I'll give it one last review tomorrow and then we can probably merge it.

_execution plan_ of the query. With this release, `DESCRIBE query` now outputs
the computed _schema_ of the query, consistent with the behavior of `DESCRIBE table_name`.

### Introduction of `TableSchema` and changes to `FileSource::with_schema()` method
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that TableSchema was not added in this PR but this PR does use it in a way that introduces a notable breaking change, so I think it's an appropriate time to add it to the upgrade guide.

Copy link
Contributor

@friendlymatthew friendlymatthew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me. Thanks @feniljain

@adriangb
Copy link
Contributor

@alamb, @xudong963 or @Jefffrey could one of you approve or review this PR if you have time? It's good to me but since I pushed some commits I cannot approve it. I'd like to merge it before it gets more conflicts (I've had to resolve already).

feniljain and others added 8 commits October 28, 2025 18:39
Added documentation explaining the introduction of the TableSchema
struct and the breaking change to FileSource::with_schema() method
signature (changed from SchemaRef to TableSchema).

Includes:
- Overview of TableSchema purpose and structure
- Who is affected by the change
- Migration guide for custom FileSource implementations
- Code examples showing how to update implementations
- Examples of using TableSchema directly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@adriangb adriangb force-pushed the feat-dynamic-filter-join-partition-col branch from b6375bb to 220060d Compare October 28, 2025 23:39
@Jefffrey
Copy link
Contributor

@alamb, @xudong963 or @Jefffrey could one of you approve or review this PR if you have time? It's good to me but since I pushed some commits I cannot approve it. I'd like to merge it before it gets more conflicts (I've had to resolve already).

I can try take a look at this if I'm able, though I am not too familiar with dynamic filters in DataFusion

@alamb
Copy link
Contributor

alamb commented Oct 29, 2025

@alamb, @xudong963 or @Jefffrey could one of you approve or review this PR if you have time? It's good to me but since I pushed some commits I cannot approve it. I'd like to merge it before it gets more conflicts (I've had to resolve already).

FWIW I don't think there is any reason you can't approve it after pushing commits

@adriangb
Copy link
Contributor

@alamb, @xudong963 or @Jefffrey could one of you approve or review this PR if you have time? It's good to me but since I pushed some commits I cannot approve it. I'd like to merge it before it gets more conflicts (I've had to resolve already).

FWIW I don't think there is any reason you can't approve it after pushing commits

Hmm it didn't seem to let me hit the queue button but I guess as a matter of procedure probably good to get another approval anyway :)

@adriangb adriangb added this pull request to the merge queue Oct 29, 2025
Merged via the queue into apache:main with commit dfba228 Oct 29, 2025
29 checks passed
@adriangb
Copy link
Contributor

Huh got it to go now!

tobixdev pushed a commit to tobixdev/datafusion that referenced this pull request Nov 2, 2025
…#18172)

## Which issue does this PR close?

- Closes apache#18171

## Rationale for this change

Included in the issue

## Are these changes tested?

While I have tested this on local with a local TPCDS-like dataset, I
would appreciate if someone provides me a good way to add tests for the
same 😅

---------

Co-authored-by: Adrian Garcia Badaracco <[email protected]>
Co-authored-by: Claude <[email protected]>
codetyri0n pushed a commit to codetyri0n/datafusion that referenced this pull request Nov 11, 2025
…#18172)

## Which issue does this PR close?

- Closes apache#18171

## Rationale for this change

Included in the issue

## Are these changes tested?

While I have tested this on local with a local TPCDS-like dataset, I
would appreciate if someone provides me a good way to add tests for the
same 😅

---------

Co-authored-by: Adrian Garcia Badaracco <[email protected]>
Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate datasource Changes to the datasource crate documentation Improvements or additions to documentation sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

5 participants