Enterprise only
Use ATTACH TABLE in LanceDB Enterprise to add an existing Lance table to a
database. The statement registers the table in place and keeps its existing
schema and data.
.lance
directories. Use a subdirectory such as imports/ for tables you want to
attach. Absolute filesystem paths, cloud URIs, and paths that traverse outside
the database are rejected.
The table’s existing versions must have no configured base paths. Live Lance
branches use base paths, so tables with live branches are ineligible. On the
local filesystem, the attached directory must be free of symbolic links.
The command requires a native manifest-backed database, database ownership, and
permission to create tables in the target namespace. The table name must be
available, and the location must be separate from other catalog objects.
An attached table follows the normal table lifecycle. DROP TABLE removes the
registration and deletes the table data at the attached location.