Skip to content

Port iceberg-rust history - #1

Merged
gabotechs merged 139 commits into
mainfrom
gabotechs/port-iceberg-rust-history
Sep 17, 2026
Merged

gabotechs merged 139 commits into
mainfrom
gabotechs/port-iceberg-rust-history

Conversation

@gabotechs

Copy link
Copy Markdown
Contributor

Brings all the commit history from https://github.com/apache/iceberg-rust that has ever contributed to https://github.com/apache/iceberg-rust/tree/main/crates/integrations/datafusion.

Each individual commit maintains the original author, and only the changes to files inside the crates/integrations/datafusion folder have been kept.

The commits are taken "as-is", so the project still does not compile, as it still points to a non-existing Rust workspace. This will be address in a follow up PR, leaving the project ready for contributions.

marvinlanhenke and others added 30 commits May 2, 2024 05:33
* chore: basic structure

* feat: add IcebergCatalogProvider

* feat: add IcebergSchemaProvider

* feat: add IcebergTableProvider

* chore: add integration test infr

* fix: remove old test

* chore: update crate structure

* fix: remove workspace dep

* refactor: use try_join_all

* chore: remove feature flag

* chore: rename package

* chore: update readme

* feat: add TableType

* fix: import + async_trait

* fix: imports + async_trait

* chore: remove feature flag

* fix: cargo sort

* refactor: CatalogProvider `fn try_new`

* refactor: SchemaProvider `fn try_new`

* chore: update docs

* chore: update docs

* chore: update doc

* feat: impl `fn schema` on TableProvider

* chore: rename ArrowSchema

* refactor: remove DashMap

* feat: add basic IcebergTableScan

* chore: fix docs

* chore: add comments

* fix: clippy

* fix: typo

* fix: license

* chore: update docs

* chore: move derive stmt

* fix: collect into hashmap

* chore: use DFResult

* Update crates/integrations/datafusion/README.md

Co-authored-by: Liang-Chi Hsieh <[email protected]>

---------

Co-authored-by: Renjie Liu <[email protected]>
Co-authored-by: Liang-Chi Hsieh <[email protected]>
* feat: Extract FileRead and FileWrie trait

Signed-off-by: Xuanwo <[email protected]>

* Enable s3 services for tests

Signed-off-by: Xuanwo <[email protected]>

* Fix sort

Signed-off-by: Xuanwo <[email protected]>

* Add comment for io trait

Signed-off-by: Xuanwo <[email protected]>

* Fix test for rest

Signed-off-by: Xuanwo <[email protected]>

* Use try join

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
* feat: Add storage features for iceberg

Signed-off-by: Xuanwo <[email protected]>

* Format toml

Signed-off-by: Xuanwo <[email protected]>

* Add fs and s3 into default features

Signed-off-by: Xuanwo <[email protected]>

* Make toml happy

Signed-off-by: Xuanwo <[email protected]>

* Remove not needed feature flag

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
* chore: Use nightly toolchain for check

* Fix check

* Fix clippy finds

* Make rustfmt happy

* Make rustfmt happy

* Update github actions

* Use action builder since apache doesn't allow external actions

* Fix comments

* Fix README.md
* reuse docker container to save compute resources

* add lazy resuse docker compose

* refactor test fixture: the docker compose init is reused

* use ctor and dtor to start docker compose and destory docker compose

* fix cargo fmt check

* fix cargo clippy

* fix cargo fmt

* fix cargo sort

* add namespace for datafusion test

* add empty check for list glue catalog namespace

---------

Co-authored-by: thexiay <[email protected]>
* chore: Enable new format settings

Signed-off-by: Xuanwo <[email protected]>

* Format

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
* feat: improve docker/podman get OsArch compatibility

* fix: replace deprecated 'links' keyword in docker compose

* refactor: use IpAddr and SocketAddr when able

* docs: add podman documentation

* address PR documentation comments

* address pr comments on tests

* Address pr comments, properly handle result with match

* address pr comments, refactor get_cmd_output

* move podman instr to docs/contributing

* address pr comment, show detailed err msg

---------

Co-authored-by: Alex Yin <[email protected]>
* Bump to version 0.3.0

Signed-off-by: Xuanwo <[email protected]>

* regen

Signed-off-by: Xuanwo <[email protected]>

* Fix typo

Signed-off-by: Xuanwo <[email protected]>

* Update CHANGELOG.md

---------

Signed-off-by: Xuanwo <[email protected]>
* add memory catalog

* fix style

* fix style
* support projection pushdown for datafusion iceberg

* support projection pushdown for datafusion iceberg

* fix ci

* fix field id

* remove depencences

* remove depencences
* chore: migrate to arrow-* v53

* chore: update datafusion to 42

* test: fix incorrect test assertion

* chore: update python bindings to arrow 53
…berg Predicate (#588)

* adding main function and tests

* adding tests, removing integration test for now

* fixing typos and lints

* fixing typing issue

* - added support in schmema to convert Date32 to correct arrow type
- refactored scan to use new predicate converter as visitor and seperated it to a new mod
- added support for simple predicates with column cast expressions
- added testing, mostly around date functions

* fixing format and lic

* reducing number of tests (17 -> 7)

* fix formats

* fix naming

* refactoring to use TreeNodeVisitor

* fixing fmt

* small refactor

* adding swapped op and fixing CR comments

---------

Co-authored-by: Alon Agmon <[email protected]>
* add test for table provider creation

* fix formatting

* fixing yet another formatting issue

* testing schema using data fusion

---------

Co-authored-by: Alon Agmon <[email protected]>
…#649)

* suppport more datafusion predict

* add it

* reverse op
* feat: implement IcebergTableProviderFactory for datafusion

* fix comments

* add doc&ut

* remove print

* fix comments
* datafusion: Create table provider for a snapshot.

The Iceberg table provider allows querying an Iceberg table via
datafusion. The initial implementation only allowed querying the latest
snapshot of the table. It sometimes useful to query a specific snapshot
(time travel). This commit adds this capability.  It adds a new method
(`try_new_from_table_snapshot`) that creates a provider for a specific
table snapshot.

All existing APIs should work as before.

Signed-off-by: Leonid Ryzhyk <[email protected]>

* datafusion: use Snapshot::schema, not schema_id().

Apply @liurenjie1024's suggestion: use `Snapshot::schema` instead of retrieving
the schema directly by id (which can be missing in the snapshot).

Signed-off-by: Leonid Ryzhyk <[email protected]>

---------

Signed-off-by: Leonid Ryzhyk <[email protected]>
Co-authored-by: Leonid Ryzhyk <[email protected]>
…be the same as the one converted from logical input schema (#664)

* xx

* fix comment

* fix comment

* fix comment
* dependencies

* 0.4.0 changelog

* update reelease.md

* typos
@andygrove

Copy link
Copy Markdown
Member

Thanks @kumarUjjawal! I'll leave this PR open for a day to give iceberg-rust people to chime in (in case I overlooked something), but otherwise will merge it as-is

I think @alamb was planning on having a formal vote before this gets merged

@kevinjqliu

Copy link
Copy Markdown
Contributor

I think @alamb was planning on having a formal vote before this gets merged

yes, please wait for formal vote from both iceberg and datafusion before merging this 😄

@kevinjqliu

Copy link
Copy Markdown
Contributor

@alamb

alamb commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

@alamb

alamb commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Vote thread on datafusion maling list: https://lists.apache.org/thread/6k5lws31c61y1lx2s34pxo4lmc7334lr

@kevinjqliu

Copy link
Copy Markdown
Contributor

@dannycjones dannycjones left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not blocking from me, but do we want to put the crate inside a crates/ directory? i.e. anticipating that a new crate may be introduced later (such as for proc macros)

I'm not sure how the Git blame will fare a move later - might be fine?

@Xuanwo

Xuanwo commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

but do we want to put the crate inside a crates/ directory

I believe it's better to move AS IS and then we can do any refactor we want.

@dannycjones

Copy link
Copy Markdown
Contributor

but do we want to put the crate inside a crates/ directory

I believe it's better to move AS IS and then we can do any refactor we want.

We're already moving directory here from crates/integrations to root. I don't disagree more broadly though.

@dannycjones

Copy link
Copy Markdown
Contributor

OK I see your point @Xuanwo, we'd need to start moving parts of the repo around. This LGTM, we can certainly move later.

but do we want to put the crate inside a crates/ directory

I believe it's better to move AS IS and then we can do any refactor we want.

We're already moving directory here from crates/integrations to root. I don't disagree more broadly though.

@kevinjqliu

Copy link
Copy Markdown
Contributor

@gabotechs

Copy link
Copy Markdown
Contributor Author

Nice, I’ll wait for the green light from @andygrove and @alamb and I’ll pull this in then.

@alamb

alamb commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Nice, I’ll wait for the green light from @andygrove and @alamb and I’ll pull this in then.

My vote thread says it will be open for 7 days -- so I expect that to be complete next week

@blackmwk

Copy link
Copy Markdown
Contributor

Hi, @gabotechs I think you also need to port the sqllogictest dir?

@CTTY

CTTY commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

An open question: should we move iceberg-playground to here as well?

For the context: https://github.com/apache/iceberg-rust/blob/main/crates/integrations/playground/README.md

@gabotechs

Copy link
Copy Markdown
Contributor Author

Taking a look at both the sqllogictest and iceberg-playground crates. It does sound like it makes sense to host them here. Working on that now.

@gabotechs
gabotechs force-pushed the gabotechs/port-iceberg-rust-history branch from 4ef4679 to fdd7e23 Compare September 11, 2026 13:56
@gabotechs

gabotechs commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Done, the folder structure is the following one:

  • src/: the main crate with the DataFusion integration, what previously was crates/integrations/datafusion/
  • sqllogictest/: crate with the sqllogictests, what previously was crates/sqllogictest/
  • playground/: crate with the iceberg-playground tool, what previously was crates/integrations/playground/

This means that even if there's a workspace with attached crates, there's still one main central crate that is DataFusion integration. It's not exactly the same folder structure we had before, but IMO this is a good solution. Happy to hear other opinions if any.

EDIT: everything was moved in the end to crates/, rather than being top-level folders

@blackmwk

Copy link
Copy Markdown
Contributor

Done, the folder structure is the following one:

  • src/: the main crate with the DataFusion integration, what previously was crates/integrations/datafusion/
  • sqllogictest/: crate with the sqllogictests, what previously was crates/sqllogictest/
  • playground/: crate with the iceberg-playground tool, what previously was crates/integrations/playground/

This means that even if there's a workspace with attached crates, there's still one main central crate that is DataFusion integration. It's not exactly the same folder structure we had before, but IMO this is a good solution. Happy to hear other opinions if any.

Thanks @gabotechs for porting the changes. I would sugges to keep the origin crates dir, and put each crates under them for serveral reasons:

  1. A repo will not only contain code, but also build scripts, license file, doc file etc. If we put the main crate in the root dir, it will make things a little difficult to maintain and read.
  2. Sometimes we may need discover all crates dynamically in scripts, and putting all crates under a crates dir makes this easier to do.

It's not a blocker, but it's a convention followed by most multi crate projects.

@gabotechs
gabotechs force-pushed the gabotechs/port-iceberg-rust-history branch from fdd7e23 to 9f35881 Compare September 14, 2026 11:26

@CTTY CTTY left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for working on this!

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The vote from DataFusion to accept this PR into DataFusion also has officially passed

Thank you all so much. I am so excited to see where this takes us

@gabotechs

Copy link
Copy Markdown
Contributor Author

🫡 It was a pleasure to have you all here, thanks everyone!

@gabotechs
gabotechs removed this pull request from stack #3 September 17, 2026 07:05
@gabotechs
gabotechs merged commit 3cc66ed into main Sep 17, 2026
@alamb

alamb commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

🚀

@manuzhang
manuzhang deleted the gabotechs/port-iceberg-rust-history branch October 10, 2026 04:56
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.