datafusion-contrib / datafusion-contrib/datafusion-distributed

[Iceberg] Support sort-order pushdown

Open
#610 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
139
Forks
67
Avg merge
3d 1h
Merged PRs (30d)
35

Description

Part of #599.

Allow IcebergDataSource to support sort-expression pushdown where this can be guaranteed by Iceberg table metadata.

Essentially, implementing this TODO comment in the code:

https://github.com/datafusion-contrib/datafusion-distributed/blob/72203a0faf105ca9c6d5775a184ca4e1e1cd79d1/iceberg/src/data_source.rs#L296-L297

This should only advertise a sort order when it is valid for all returned data.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the TODO in iceberg/src/data_source.rs around lines 296-297 and inspect how Iceberg table metadata is exposed to IcebergDataSource. Trace the existing sort-expression pushdown path and determine when metadata guarantees the order for every returned row. Done means the data source advertises sort order only when that guarantee holds.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.