# Vectorized execution

Glossary, read 10 Nov 2026

**The short answer.** Vectorized execution processes a batch of values from one column per function call instead of one row per call. That cuts per-row overhead and lets the CPU use SIMD instructions. Spark's Parquet reader is vectorized and reads 4096 rows per batch by default, set by spark.sql.parquet.columnarReaderBatchSize.

Spark's Parquet reader hands over columnar batches at the scan. Native engines say they keep data columnar through more of the plan, including shuffle.

Batch size is a tradeoff. Larger batches amortize overhead but raise memory use and out-of-memory risk, which the Spark documentation says to choose carefully.

## A sourced example

Spark's spark.sql.inMemoryColumnarStorage.batchSize defaults to 10000 rows for cached tables, a different setting from the 4096-row Parquet reader batch, and the two do not need to match.

## Sources

- Apache Spark configuration reference: https://spark.apache.org/docs/latest/configuration.html (read 10 Nov 2026)

Last reviewed 10 Nov 2026. Canonical: https://sparkaccelerationcompare.com/glossary/vectorized-execution/
