Manifest #
Manifest List #
├── manifest
└── manifest-list-51c16f7b-421c-4bc0-80a0-17677f343358-1
Manifest List includes meta of several manifest files. Its name contains UUID, it is a avro file, the schema is:
- fileName: manifest file name.
- fileSize: manifest file size.
- numAddedFiles: number added files in manifest.
- numDeletedFiles: number deleted files in manifest.
- partitionStats: partition stats, the minimum and maximum values of partition fields in this manifest are beneficial for skipping certain manifest files during queries, it is a SimpleStats.
- schemaId: schema id when writing this manifest file.
Manifest #
Manifest includes meta of several data files or changelog files or table-index files. Its name contains UUID, it is an avro file.
The changes of the file are saved in the manifest, and the file can be added or deleted. Manifests should be in an orderly manner, and the same file may be added or deleted multiple times. The last version should be read. This design can make commit lighter to support file deletion generated by compaction.
Data Manifest #
Data Manifest includes meta of several data files or changelog files.
├── manifest
└── manifest-6758823b-2010-4d06-aef0-3b1b597723d6-0
The schema is:
- kind: ADD or DELETE,
- partition: partition spec, a BinaryRow.
- bucket: bucket of this file.
- totalBuckets: total buckets when write this file, it is used for verification after bucket changes.
- file: data file meta.
The data file meta is:
- fileName: file name.
- fileSize: file size.
- rowCount: total number of rows (including add & delete) in this file.
- minKey: the minimum key of this file.
- maxKey: the maximum key of this file.
- keyStats: the statistics of the key.
- valueStats: the statistics of the value.
- minSequenceNumber: the minimum sequence number.
- maxSequenceNumber: the maximum sequence number.
- schemaId: schema id when write this file.
- level: level of this file, in LSM.
- extraFiles: extra files for this file, for example, data file index file.
- creationTime: creation time of this file.
- deleteRowCount: rowCount = addRowCount + deleteRowCount.
- embeddedIndex: if data file index is too small, store the index in manifest.
Index Manifest #
Index Manifest includes meta of several table-index files.
├── manifest
└── index-manifest-5d670043-da25-4265-9a26-e31affc98039-0
The schema is:
- kind: ADD or DELETE,
- partition: partition spec, a BinaryRow.
- bucket: bucket of this file.
- indexFile: index file meta.
The index file meta is:
- indexType: string, “HASH” or “DELETION_VECTORS”.
- fileName: file name.
- fileSize: file size.
- rowCount: total number of rows.
- deletionVectorsRanges: Metadata only used by “DELETION_VECTORS”, Stores offset and length of each data file,
The schema is
ARRAY<ROW<f0: STRING, f1: INT, f2: INT>>
.