Enterprise only
Place an AT selector after a table name in FROM or JOIN to read a snapshot
without creating a clone. Each table reference selects its own snapshot, so one
statement can compare versions of the same table.
Select a snapshot
Use literal values for selectors. Put an alias after the selector:
AT selector continues to read the current table.
Timestamp selectors accept RFC 3339 timestamps, dates such as '2026-11-01',
and date-time strings such as '2026-11-01 12:00:00'. Values without a time
zone use UTC. A timestamp after the latest commit selects the latest version;
a timestamp before every retained commit fails planning.
Tags and branch heads are resolved while planning each statement. Later
statements can read different snapshots after a tag or branch moves. Each
reference keeps its selected snapshot for that execution.
Compare versions or branches
Join snapshots using a stored key. This query finds IDs added between two versions:Retention and supported tables
The selected version and its data must still be retained. A missing version, tag, or branch fails planning;AT cannot recover versions removed by cleanup.
Coordinate version retention with the period your queries need to inspect.
Reading a snapshot requires the usual SELECT permission on its table.
Selectors are supported only on native Lance base tables. WAL-backed tables
are rejected because rows in the fresh tier do not have Lance table versions.
Selectors cannot be applied to view results, CTE results, table functions, or
write targets, and cannot appear in persistent view definitions. A CTE can
contain a selected base table: