≈ The Lake

Concepts

The 68 terms in the glossary and the chapters that explain them (numbered circles). Solid lines join related terms; dashed lines join a term to its chapter, and dotted lines a chapter to a term it uses from elsewhere in the book. Select a term to go to the section that explains it.

Chapter 3. S3 semantics: consistency, atomicity and cost 3 Chapter 4. Atomic commits on object stores 4 Chapter 5. Parquet file layout 5 Chapter 6. Parquet encodings and compression 6 Chapter 7. Nested data: repetition and definition levels 7 Chapter 8. Statistics, page indexes and bloom filters 8 Chapter 9. The Delta log: actions and replay 9 Chapter 10. Delta commit and optimistic concurrency 10 Chapter 11. Checkpoints, sidecars and log compaction 11 Chapter 12. Protocol versions and table features 12 Chapter 13. Deletion vectors and row tracking 13 Chapter 14. Catalog-managed tables and coordinated commits 14 Chapter 15. Change data feed, column mapping and type widening 15 Chapter 16. The Iceberg metadata tree 16 Chapter 17. Iceberg commits and optimistic concurrency 17 Chapter 18. Hidden partitioning and partition evolution 18 Chapter 19. Schemas, field IDs and sort orders 19 Chapter 20. Row-level deletes: v2 delete files and v3 deletion vectors 20 Chapter 21. The REST catalog protocol 21 Chapter 22. Delta and Iceberg: comparison and interoperability 22 Chapter 23. Unity Catalog: object model and architecture 23 Chapter 24. Governance: privileges, credential vending and lineage 24 Chapter 26. Data skipping, Z-order and space-filling curves 26 Chapter 27. Liquid clustering 27 Chapter 28. Compaction, OPTIMIZE and VACUUM 28 Chapter 29. The Spark SQL query lifecycle 29 Chapter 30. DataSource V2 and scan planning for tables 30 Chapter 31. The vectorized Parquet reader and columnar batches 31 Chapter 32. Vectorized execution: from X100 to Photon 32 Chapter 33. Shuffle, joins and skew 33 Chapter 34. MERGE, UPDATE and DELETE internals 34 Chapter 36. Photon 36 Object store: Storage addressed by bucket and key with whole-object PUT, GET, LIST and DELETE, no rename or append, such as S3. Object store Strong read-after-write consistency: S3's guarantee, since December 2020, that a successful PUT is visible to every later GET and LIST. Strong read-after-write consistency Conditional write: A PUT that succeeds only if a precondition holds, such as If-None-Match: * (the key must not exist). It gives put-if-absent, the primitive a log needs to commit. Conditional write Commit arbiter: Whatever guarantees that exactly one writer creates a given table version: a conditional PUT, a lock in a database such as DynamoDB, or a catalog. Commit arbiter Row group: A horizontal slice of a Parquet file holding one column chunk per column. Row group Column chunk: The data of one column within one row group, stored as a sequence of pages. Column chunk Page: The unit of encoding and compression inside a column chunk: data pages and an optional dictionary page, each with a header. Page Footer: The Thrift-encoded FileMetaData at the end of a Parquet file: schema, row groups, column chunk offsets and statistics, followed by its length and the magic PAR1. Footer Dictionary encoding: Storing each distinct value once in a dictionary page and the column as indices into it, encoded with the RLE/bit-packing hybrid. Dictionary encoding RLE / bit-packing hybrid: Parquet's encoding for small integers (levels, dictionary indices) that alternates run-length runs and bit-packed groups of 8. RLE / bit-packing hybrid DELTA_BINARY_PACKED: An integer encoding that stores a first value, then blocks of deltas minus the block minimum, bit-packed per miniblock. DELTA_BINARY_PACKED Repetition level: For nested data, the depth of the repeated field at which a value starts a new list entry; 0 means a new record. Repetition level Definition level: For nested or optional data, how many optional or repeated fields along the path are defined; less than the maximum means null or empty at that depth. Definition level Column index / offset index: Per-page min/max and null counts (column index) and page locations (offset index), stored before the footer so readers can skip pages. Column index / offset index Bloom filter: A per-column-chunk probabilistic set that answers "definitely absent" for equality predicates on high-cardinality columns. Bloom filter Delta log: The _delta_log directory of numbered JSON commits (and checkpoints) whose replay defines a Delta table's state at each version. Delta log Action: One line of a Delta commit: add, remove, metaData, protocol, txn, domainMetadata, cdc or commitInfo. Action Action reconciliation: The replay rule: the latest protocol and metaData win, and a file is live if its last add is not followed by a remove of the same path and DV. Action reconciliation Logical file: A data file together with its optional deletion vector. Delta reconciles file actions by the key (path, deletionVector.uniqueId), so the same path with a new DV is a different logical file. Logical file Tombstone: A remove action kept in the snapshot after its file left the table. It exists for VACUUM, which must not delete a file an older snapshot may still read until the retention period has passed. Tombstone Snapshot: The state of a table at one version: protocol, metadata, live files, tombstones and transaction ids (Delta), or a snapshot entry with its manifest list (Iceberg). Snapshot Optimistic concurrency control: Writers prepare a commit against a read snapshot, try to create the next version, and on losing check the winners for logical conflicts before retrying. Optimistic concurrency control Conflict checking: Delta's comparison of a losing transaction's reads and writes against the commits that won, deciding whether it can be rebased to the next version. Conflict checking WriteSerializable: Delta's default isolation level. It checks the same conflicts as Serializable except that files added by concurrent blind appends are ignored. WriteSerializable Checkpoint: A Parquet (or v2 JSON/Parquet) file holding the reconciled state at a version, so readers do not replay the whole log. Checkpoint Sidecar: A file referenced by a v2 checkpoint that holds part of its add and remove actions. Sidecar Log compaction: A file x.y.compacted.json holding the reconciled actions of commits x to y, which a reader may use instead of those commits. Log compaction Protocol version: minReaderVersion and minWriterVersion in a Delta table's protocol action; clients that implement less must not read or write. Protocol version Table feature: A named capability listed in readerFeatures or writerFeatures (at reader 3 / writer 7) that clients must implement to read or write the table. Table feature Deletion vector: A bitmap of deleted row positions attached to a data file, so deletes and updates mark rows instead of rewriting files. Deletion vector Row tracking: Stable row ids and row commit versions assigned through baseRowId and defaultRowCommitVersion on each file. Row tracking Catalog-managed table: A Delta table whose catalog ratifies each commit; a version exists once the catalog accepts it, and published log files may lag. Catalog-managed table Backfill: Copying ratified commits from the catalog's staging into _delta_log as numbered files, in order. Backfill Change data feed: Row-level inserts, updates and deletes per version, from cdc files or derived from adds and removes. Change data feed Column mapping: Giving each column a stable id and physical name in the files, so renames and drops do not rewrite data. Column mapping Type widening: Changing a column to a wider type (for example int to long) without rewriting files, with the history recorded in field metadata. Type widening Table metadata file: The JSON file holding an Iceberg table's schemas, specs, snapshots and refs; the catalog points at the current one. Table metadata file Manifest list: Per Iceberg snapshot (v1-v3), the Avro file listing its manifests with partition summaries. Manifest list Manifest: An Avro file of entries for data or delete files, each with status, sequence numbers, partition tuple and column statistics. Manifest Sequence number: Iceberg's monotonically increasing commit counter, which orders deletes against the data they apply to. Sequence number Metadata pointer swap: Iceberg's commit: the catalog atomically replaces the table's current metadata location if it still equals the base the writer read. Metadata pointer swap Hidden partitioning: Partition values derived by transforms (day, bucket, truncate) of source columns, so queries filter on the column and never on a partition column. Hidden partitioning Partition evolution: Changing an Iceberg table's partition spec; old files keep their spec id, and planning handles each spec separately. Partition evolution Field id: The permanent integer identifying an Iceberg column, used to resolve columns in data files regardless of name or position. Field id Position delete file: An Iceberg v2 delete file listing (file path, row position) pairs. Position delete file Equality delete file: An Iceberg v2 delete file listing column values; matching rows in data files with a lower data sequence number are deleted. Cheap to write, expensive to read. Equality delete file REST catalog: Iceberg's OpenAPI protocol for catalogs: load table, commit with requirements and updates, and vended credentials. REST catalog UniForm: Delta's feature that writes Iceberg metadata for each Delta commit over the same Parquet files. UniForm IcebergCompat: Delta writer features (V1, V2) that constrain a Delta table so its files are valid Iceberg data files. IcebergCompat Metastore (Unity Catalog): The top-level container of catalogs, storage credentials and external locations. Metastore (Unity Catalog) Managed table: A table whose storage path the catalog chooses and owns; in Unity Catalog, under __unitystorage by UUID. Managed table External location: A storage URL prefix paired with a storage credential; in Unity Catalog, locations never nest. External location Credential vending: A catalog issuing short-lived storage credentials scoped to one table's path after an access check. Credential vending Row filter / column mask: SQL functions attached to a table that filter rows and transform column values per querying user. Row filter / column mask Data skipping: Pruning files whose per-file min/max statistics cannot satisfy a predicate. Data skipping Z-order: Sorting by the bit-interleaved values of several columns, so files have narrow ranges on each. Z-order Liquid clustering: Delta's incremental clustering by Hilbert curve over clustering columns, changeable without rewriting the table. Liquid clustering OPTIMIZE: Compacting small files into larger ones, optionally clustering them, as a dataChange = false commit. OPTIMIZE VACUUM: Deleting files no longer referenced by any version within the retention period. VACUUM Catalyst: Spark SQL's tree-transformation framework: analysis, logical optimization, physical planning and code generation. Catalyst DataSource V2: Spark's connector API, where a table source plans scans with pushed filters and projections and writes with commit protocols. DataSource V2 ColumnarBatch: Spark's in-memory batch of column vectors, produced by the vectorized Parquet reader. ColumnarBatch Vectorized execution: Operators that process vectors of values per call, from MonetDB/X100, as opposed to one row at a time. Vectorized execution Whole-stage code generation: Spark fusing a pipeline of operators into one generated Java function. Whole-stage code generation Shuffle: Redistributing rows across tasks by partition key, written by map tasks and fetched by reduce tasks. Shuffle Adaptive query execution: Spark re-planning at stage boundaries with runtime statistics: coalescing partitions, switching join strategies, splitting skew. Adaptive query execution Copy-on-write / merge-on-read: Two ways to apply row-level changes: rewrite affected files, or write deletes (vectors or delete files) that readers apply. Copy-on-write / merge-on-read Photon: Databricks' native vectorized engine in C++ that runs under Spark's planner. Photon

All terms by part

Storage and Parquet

Delta Lake

Iceberg

Interop and catalogs

Data layout

Query engine and Databricks