Start here
So far the shop pipeline built tables. This chapter asks a new question: how are those tables stored as files on disk?
The answer decides how much data a query must read. Less data read means a faster and cheaper query.
What you already know
- Modeling: orders is a fact table. One row is one order.
- Loads: MERGE updates a row that exists and inserts a row that does not.
- Data quality: checks and staging tables keep bad rows out of the published table.
- CDC: a change feed sends many small changes, all day.
- Batch and streaming: a micro-batch job writes small pieces often.
What you will learn
- Three storage layers: raw, cleaned and serving.
- Why reading less data matters.
- Row storage and column storage.
- How to choose a file format.
- Partitions, and the small-files problem.
- What is inside a Parquet file.
- Why a plain folder of files is not a table.
- Table formats, and how they change one row.
We use the shop. Orders 110 and 111 are the made-up rows from the schema chapter.
