diff --git a/docs/src/js/classes/Table.md b/docs/src/js/classes/Table.md index 1226d5a1c..e5ffe71c1 100644 --- a/docs/src/js/classes/Table.md +++ b/docs/src/js/classes/Table.md @@ -191,6 +191,10 @@ the `restore` function. Calling this method will set the table into time-travel mode. If you wish to return to standard mode, call `checkoutLatest`. +In local mode, a tag must reference this handle's branch. A tag on another +branch is rejected without changing the handle. Use [Branches.checkout](Branches.md#checkout) +to open a handle scoped to that branch before checking out its tag. + #### Parameters * **version**: `string` \| `number` diff --git a/nodejs/lancedb/table.ts b/nodejs/lancedb/table.ts index e84704803..29707c5ae 100644 --- a/nodejs/lancedb/table.ts +++ b/nodejs/lancedb/table.ts @@ -925,6 +925,11 @@ export abstract class Table { * * Calling this method will set the table into time-travel mode. If you * wish to return to standard mode, call `checkoutLatest`. + * + * In local mode, a tag must reference this handle's branch. A tag on another + * branch is rejected without changing the handle. Use {@link Branches.checkout} + * to open a handle scoped to that branch before checking out its tag. + * * @param {number | string} version The version to checkout, could be version number or tag * @example * ```typescript diff --git a/python/python/lancedb/table.py b/python/python/lancedb/table.py index 23bc25b97..c3d5cb41a 100644 --- a/python/python/lancedb/table.py +++ b/python/python/lancedb/table.py @@ -3456,6 +3456,11 @@ class Table(ABC): version. As a consequence, calling this method will disable any read consistency interval that was previously set. + In local mode, a tag must reference this handle's branch. A tag on another + branch raises `ValueError` without changing the handle. Use + [branches.checkout()][lancedb.table.Branches.checkout] to open a handle + scoped to that branch before checking out its tag. + This is a read-only operation that turns the table into a sort of "view" or "detached head". Other table instances will not be affected. To make the change permanent you can use the `[Self::restore]` method. @@ -3884,6 +3889,11 @@ class LanceTable(Table): Calling this method will set the table into time-travel mode. If you wish to return to standard mode, call `checkout_latest`. + A tag must reference this handle's branch. A tag on another branch raises + `ValueError` without changing the handle. Use + [branches.checkout()][lancedb.table.Branches.checkout] to open a handle + scoped to that branch before checking out its tag. + Parameters ---------- version: int | str, @@ -7986,6 +7996,11 @@ class AsyncTable: version. As a consequence, calling this method will disable any read consistency interval that was previously set. + In local mode, a tag must reference this handle's branch. A tag on another + branch raises `ValueError` without changing the handle. Use + [branches.checkout()][lancedb.table.AsyncBranches.checkout] to open a handle + scoped to that branch before checking out its tag. + This is a read-only operation that turns the table into a sort of "view" or "detached head". Other table instances will not be affected. To make the change permanent you can use the `[Self::restore]` method.