Skip to content

[branch-0.9] Cherry pick feat(datafusion): show pushed-down limit in IcebergTableScan EXPLAIN#13

Merged
toutane merged 1 commit intobranch-0.9from
branch-0.9-cherry-pick-4
Apr 29, 2026
Merged

[branch-0.9] Cherry pick feat(datafusion): show pushed-down limit in IcebergTableScan EXPLAIN#13
toutane merged 1 commit intobranch-0.9from
branch-0.9-cherry-pick-4

Conversation

@toutane
Copy link
Copy Markdown

@toutane toutane commented Apr 29, 2026

Cherry picks: apache#2360

…output (apache#2360)

## Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes apache#123` indicates that this PR will close issue apache#123.
-->

- Closes apache#2359.

## What changes are included in this PR?

<!--
Provide a summary of the modifications in this PR. List the main changes
such as new features, bug fixes, refactoring, or any other updates.
-->

Emit ` limit:[N]` in `IcebergTableScan`'s `DisplayAs` output when a
`LIMIT` is pushed down to the scan. When no limit is pushed down, the
output is unchanged.

- Before (unchanged):
`IcebergTableScan projection:[id,name] predicate:[...]`

- After (new, only when a limit reaches the scan):
`IcebergTableScan projection:[...] predicate:[] limit:[3]`

## Are these changes tested?

<!--
Specify what test covers (unit test, integration test, etc.).

If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->

Yes: new `EXPLAIN ... LIMIT 3` assertion in
`crates/sqllogictest/testdata/slts/df_test/basic_queries.slt`. Existing
snapshots are unchanged, which confirms the additive-only behavior.

(cherry picked from commit c82c42e)
@toutane toutane requested a review from notfilippo April 29, 2026 14:21
@toutane
Copy link
Copy Markdown
Author

toutane commented Apr 29, 2026

This should help me resolving future conflicts with the new scan node

@toutane toutane marked this pull request as ready for review April 29, 2026 14:21
@toutane toutane merged commit 1294a6b into branch-0.9 Apr 29, 2026
2 checks passed
@toutane toutane deleted the branch-0.9-cherry-pick-4 branch April 29, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants