liveBook · Manning

Query pushdown

As explained in Architecting an Apache Iceberg Lakehouse

Filter pushdown is a query optimization that evaluates filtering conditions as close as possible to the source data.

Query pushdown evaluates filters, projections, or aggregations as close as possible to the source. By reducing data scanned and transferred, it improves latency, resource use, and interactive query performance. section 8.2.1 section 9.2.1

In an Iceberg and Parquet lakehouse, pushdown works with metadata-driven pruning:

  • Query engines use file-level and row-group statistics to skip data that cannot satisfy a filter. section 5.3.1 section 7.1.2
  • A predicate such as WHERE id = 2 can be applied before unnecessary data is read into memory. section 5.3.1
  • File sizing, metadata pruning, execution planning, parallelism, and caching often matter more than manually tuning row groups. section 5.3.1

Federated query execution

A federation engine can query data where it already lives, pushing filters, projections, and aggregations to databases, warehouses, lakes, or lakehouse catalogs instead of copying all data into a central store. section 8.2.1

Figure 5.8 Using metadata in Parquet row-group footers, we can tell which row groups to scan and which to skip for faster reads.

Use the row-group metadata diagram to see how column statistics identify row groups to scan and skip. section 5.3.1

How Architecting an Apache Iceberg Lakehouse covers it

How deep it goes
Explains filter, projection, and aggregation placement, then connects execution to file statistics, row groups, planning, and caching.
Examples
Uses WHERE id = 2, Parquet row-group statistics, Iceberg snapshots, federated sources, dashboards, and notebooks as concrete contexts.
What you can do after
Apply it via query engines to reduce scanned data and improve latency across Iceberg tables, federated sources, dashboards, and notebooks.
How it connects
Connects query pushdown with Apache Iceberg, Parquet, file pruning, column pruning, metadata statistics, federation, and query planning.

Also explained in

Compare how 2 books explain query pushdown →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting an Apache Iceberg Lakehouse. The section links point to the parts of the book it draws on.