apache / iceberg-rust

Apache Iceberg
https://rust.iceberg.apache.org/
Apache License 2.0
673 stars 159 forks source link

datafusion: Create table provider for a snapshot. #707

Closed ryzhyk closed 1 day ago

ryzhyk commented 2 days ago

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.

Resolves #702