IcebergQueryResult#

class polars_nanook.IcebergQueryResult(
result: QueryInfo,
status: QueryStatus,
dst: DstT,
query: DirectQuery | None = None,
)

The result of a Polars Nanook query that wrote to an Iceberg table.

location is the table’s identifier, and lazy() scans the table at the snapshot the query created.

Note

This object should not be instantiated directly by the user.

Attributes:

snapshot_id

The id of the table snapshot that the query created.

Methods:

lazy

Scan the table at the snapshot the query created.

property snapshot_id: int | None

The id of the table snapshot that the query created.

This is None when the query created no snapshot, or when that snapshot has expired.

lazy() → LazyFrame

Scan the table at the snapshot the query created.

The table is loaded with the query’s catalog and storage_options. Without a snapshot id, this scans the table’s current snapshot.