-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datafusion: Create table provider for a snapshot. (#707)
* 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]>
- Loading branch information
Showing
2 changed files
with
82 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters