Skip to content

[feature request] Allow engines to time travel #600

Closed
@kevinjqliu

Description

@kevinjqliu

Feature Request / Improvement

When engines, such as Daft, read from the Table object (see scan_iceberg), it would be great if PyIceberg transparently handles time travel.

For example, to query an Iceberg table at a specific commit or timestamp, we can use PyIceberg to time travel to the particular snapshot-id or timestamp and then pass it into the engine.

There are several options to achieve this:

  1. Construct Table object with the metadata of a specific Snapshot. Maybe a function like Table.as_of(snapshot_id/timestamp) -> Table. This will make time travel transparent to the engine.
  2. Pass the Snapshot object to the engine. The function Table.snapshot_by_id -> Snapshot already exists, and represents a specific Iceberg commit. The engine will need to be able to read from both Snapshot and Table

Happy to explore other options as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions