Skip to content

Comments

Wordsmith introduction section#2

Merged
hhhizzz merged 2 commits intohhhizzz:lm-pipeline-blogfrom
alamb:alamb/intro
Dec 7, 2025
Merged

Wordsmith introduction section#2
hhhizzz merged 2 commits intohhhizzz:lm-pipeline-blogfrom
alamb:alamb/intro

Conversation

@alamb
Copy link

@alamb alamb commented Dec 5, 2025

Here is some proposed "wordsmithing" changes to the introduction section of

I'll comment inline with the rationale

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

Preview URL: https://alamb.github.io/arrow-site

If the preview URL doesn't work, you may forget to configure your fork repository for preview.
See https://github.com/apache/arrow-site/blob/main/README.md#forks how to configure.

-->

This article dives into the decisions and pitfalls of Late Materialization in `arrow-rs` (the engine powering DataFusion). We'll see how a humble file reader has evolved into something with the complex logic of a query engine—effectively becoming a **tiny query engine** in its own right.
This article dives into the decisions and pitfalls of implementing Late Materialization in the [Apache Parquet] reader from [`arrow-rs`] (the reader powering [Apache DataFusion] among other projects). We'll see how a seemingly humble file reader requires complex logic to evaluate predicates—effectively becoming a **tiny query engine** in its own right.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added some links and reworded this slightly to provide broader context

## 1. Why Late Materialization?

Columnar reads are a constant battle between **I/O bandwidth** and **CPU decode costs**. While skipping data is generally good, the act of skipping itself carries a computational cost. The goal in `arrow-rs` is **pipeline-style late materialization**: evaluate predicates first, then access projected columns, keeping the pipeline tight at the page level to ensure minimal reads and minimal decode work.
Columnar reads are a constant battle between **I/O bandwidth** and **CPU decode costs**. While skipping data is generally good, the act of skipping itself carries a computational cost. The goal of the Parquet reader in `arrow-rs` is **pipeline-style late materialization**: evaluate predicates first, then access projected columns. For predicates that filter many rows, materializing after evaluation minimizes reads and decode work.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to make the benefits a bit clearer


1. Read column `A`, build a `RowSelection` (a sparse mask), and obtain the initial set of surviving rows.
2. Use that `RowSelection` to read column `B`, decoding and filtering on the fly to make the selection even sparser.
1. Read column `A` and evaluate `A > 10` to build a `RowSelection` (a sparse mask) representing the initial set of surviving rows.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the predicate evaluation explicitly into this example as I think that was easier to follow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants