Updated on 2026-11-06 GMT+08:00

Lance Table Directory Structures

The Lance table directory is the initial location where a dataset is created. Each Lance table has only one root directory, which serves as the primary storage location for dataset files. The root directory of a Lance table contains standard subdirectory structures (data/, _versions/, _transactions/, _deletions/, _indices/, _refs/, and tree/), which are used to organize data set files.

{table_name}/
    data/
        *.lance                   -- Column data file
    _versions/
        *.manifest                -- Manifest file (one for each version)
        latest_version_hint.json  -- Latest version information
    _transactions/
        *.txn                     -- Transaction file (commit coordination)
    _deletions/
        *.arrow                   -- Deletion vector file (Arrow format)
        *.bin                     -- Deletion vector file (bitmap format)
    _indices/
        {UUID}/
            ...                   -- Index content (varying by index type)
    _refs/
        tags/
            *.json                -- Tag metadata
        branches/
            *.json                -- Branch metadata
    tree/
        {branch_name}/
            ...                   -- Branch column data file
  • Data files

    Format: data/{uuid-based-filename}.lance

    Data files use UUID-based file names optimized for S3 throughput. The file name is generated from a 16-byte UUID, with the first three bytes converted into a 24-character binary string and the remaining 13 bytes converted into a 26-character hexadecimal string, resulting in a 50-character file name. The binary prefix (rather than hexadecimal) provides maximum entropy for each character, enabling S3's internal partitions to quickly identify access patterns and scale accordingly, thereby minimizing throttling.

    Example: 0001111110110001101011107c58ef4c3cbdbf814d0d5d0d97.lance

  • Manifest file list

    Manifest files are stored in the _versions/ directory, and their naming scheme supports atomic commits.

    • V1: {version}.manifest - Monotonically increasing version number (for example, 1.manifest, 2.manifest)
    • V2: {u64::MAX - version:020}.manifest - Reverse lexicographic order, which helps efficiently discover the latest version (for example, the first version of V2 is 18446744073709551614.manifest).

      _versions/latest_version_hint.json records the latest committed version in JSON format.

      The content of the latest_version_hint.json file is as follows:
         {"version": 42}

      This file speeds up the discovery of the latest version in storage systems where list operations are costly. Readers can read hints and probe for later versions through HEAD requests instead of listing the entire directory. If a hint is missing or expired, the reader rolls back to a full list operation. This hint is purely an optimization method. It can always be safely deleted without affecting correctness and can be ignored by readers that do not recognize it. Writers can choose not to write this file.

  • Transaction files

    Format: _transactions/{read_version}-{uuid}.txn

    read_version indicates the table version on which the transaction is built.

    Example: _transactions/5-550e8400-e29b-41d4-a716-446655440000.txn

  • Deletion files

    Format: _deletions/{fragment_id}-{read_version}-{id}.{extension}

    Deletion files use two extensions: .arrow for the Arrow IPC format (sparse deletions) and .bin for the Roaring bitmap format (dense deletions).

    Example: _deletions/42-10-a1b2c3d4.arrow

  • Index files

    Each index's content is stored in the _indices/{UUID} directory under the base path. This location is referred to as the index directory. The actual content stored in the index directory depends on the index type. These can be any files defined by the index implementation. However, they are typically composed of Lance files that contain the index data structures. This allows the reuse of existing Lance file format code to read and write index data.