Repository navigation
Port iceberg-rust history - #1
Conversation
* 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]>
Signed-off-by: Xuanwo <[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]>
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
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 😄 |
|
Relevant mailing list discussion: https://lists.apache.org/thread/53lqjw7371myww42l19vx923cjzrgg68 |
|
Vote thread on datafusion maling list: https://lists.apache.org/thread/6k5lws31c61y1lx2s34pxo4lmc7334lr |
|
Iceberg mailing list vote thread: https://lists.apache.org/thread/ytb9x7x8ff3b7031kcrc05nzjtmh091s |
dannycjones
left a comment
There was a problem hiding this comment.
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?
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 |
|
OK I see your point @Xuanwo, we'd need to start moving parts of the repo around. This LGTM, we can certainly move later.
|
|
BTW both threads have enough binding votes (3+):
|
|
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 |
|
Hi, @gabotechs I think you also need to port the sqllogictest dir? |
|
An open question: should we move iceberg-playground to here as well? |
|
Taking a look at both the |
4ef4679 to
fdd7e23
Compare
|
Done, the folder structure is the following one:
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 |
Thanks @gabotechs for porting the changes. I would sugges to keep the origin crates dir, and put each crates under them for serveral reasons:
It's not a blocker, but it's a convention followed by most multi crate projects. |
fdd7e23 to
9f35881
Compare
CTTY
left a comment
There was a problem hiding this comment.
Thanks for working on this!
alamb
left a comment
There was a problem hiding this comment.
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
|
🫡 It was a pleasure to have you all here, thanks everyone! |
|
🚀 |
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/datafusionfolder 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.