liveBook · Manning

Metadata

As explained in DuckDB in Action

Metadata is descriptive information about the structure, properties, or content of data.

Metadata is descriptive information about data’s structure, properties, or content. In analytical workflows, file metadata can answer questions without scanning the underlying records. section 10.4.2

Parquet metadata can include:

Count rows without scanning the file

SELECT count(*) FROM read_parquet('users.parquet'); DuckDB can use Parquet metadata to return the row count quickly. The same operation on CSV requires reading the file, making Parquet nearly 1,000 times faster in the demonstrated comparison. section 10.3

SELECT count(*)
FROM
's3://us-prd-md-duckdb-in-action/nyc-taxis/yellow_tripdata_2022-06.parquet';
-- 3,558,124 rows in 600 ms

Inspect a metadata-powered count against a large Parquet file stored remotely. section 10.4.2

How DuckDB in Action covers it

How deep it goes
Explains row counts, schemas, types, ranges, and nullability, but does not detail Parquet’s internal encoding.
Examples
Demonstrates row counts, Parquet exports, schema.sql, load.sql, and column summaries for taxi data.
What it assumes
Assumes familiarity with SQL queries, DuckDB, and file formats such as CSV and Parquet.
What you can do after
Evaluate datasets and accelerate supported counts or aggregations through DuckDB’s Parquet readers.
How it connects
Connects metadata with Parquet, schemas, column statistics, CSV, DuckDB, and analytical query performance.

Also explained in

Compare how 21 books explain metadata →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of DuckDB in Action. The section links point to the parts of the book it draws on.