Below the Waterline: Vortex on Iceberg at Scale
Robert Kruszewski
Published Nov 17, 2026 · 5 min read
On our SF1000 Spark cluster, switching from Parquet to Vortex reduced TPC-DS query runtime by 28% with Iceberg's default runtime filters. When Spark passed join keys to the Vortex reader, the reduction reached 30% against the same Parquet baseline. We use the geometric mean to give each query equal weight.1
TPC-DS has more joins than our earlier TPC-H benchmark, so Spark has more chances to use keys from one side of a join to skip work on the other. The biggest gains came on a single machine at SF100, where Vortex with those filters reduced query runtime by 38% on local NVMe and 36% on S3 compared with Parquet using Iceberg's defaults.
Vortex against Parquet
For the benchmark, we generated the same data for both formats with the TPC-DS
generator in
vortex-bench.
The Parquet baseline used upstream Iceberg 1.12.0. For Vortex, we used the
integration released as
spiraldb-iceberg-1.13.0-spiral.2.
We tested two scale factors in November 2026:
- SF100 ran on one m8id.24xlarge with Spark in local mode and 64 threads. The tables took up 24 GB in Vortex and 25 GB in Parquet. We tested both local NVMe and S3.
- SF1000 ran on a standalone Spark cluster with one driver and four m8id.16xlarge workers. We used 16 executors with 16 cores each. Both formats used a 512 MB target file size and the same S3 region as the cluster. The tables took up 244 GB in Vortex and 254 GB in Parquet.
In each configuration we ran every query twice and kept the faster time. Q4 failed on Parquet at SF100 on S3, so we compare the 98 queries that finished there. All configurations used Spark 4.2.1 with our patch for SPARK-61592. The patch has yet to merge upstream. We'll come back to the query that led us to it.
- Vortex
- Parquet
SF100, local NVMe1 × m8id.24xlarge, Spark local mode, 64 threads
SF100, S31 × m8id.24xlarge, Spark local mode, 64 threads
SF1000, S31 driver + 4 × m8id.16xlarge, 256 executor cores
With both readers using Iceberg's default runtime filters, switching to Vortex reduced query runtime at SF100 by 12% on NVMe and 16% on S3. The biggest reduction was 28% on the SF1000 cluster, where Vortex beat Parquet on 95 of the 99 queries.
In those runs, Spark didn't tell either reader which join keys would match. Could Vortex finish sooner if it had those keys before the scan?
Runtime filters
Consider a TPC-DS query that asks how much customers paid in stores in 2001:
SELECT sum(ss_net_paid)
FROM store_sales
JOIN date_dim ON ss_sold_date_sk = d_date_sk
WHERE d_year = 2001
The year lives in date_dim, while the amounts live in store_sales. This is a
common pattern in TPC-DS. A query filters a small dimension table, often by date
or item, then joins what's left to a much larger fact table.
At SF100, only 365 of the 73,049 rows in date_dim belong to 2001. Without a
runtime filter, Spark scans all 288 million rows of store_sales, and the join
discards sales from other years. Spark doesn't know the 365 date keys when it
plans the query. Once it reads date_dim, though, it can pass those keys to the
scan as ss_sold_date_sk IN (...). That gives the reader a chance to skip sales
from other years before they reach the join.
Runtime filters in Spark
Spark asks the scan which columns can accept a runtime filter. With Iceberg's
defaults, the sales scan didn't accept one on ss_sold_date_sk, so Spark never
sent it the 365 date keys. Waiting for those keys only pays off if the reader
can skip enough work to make up for the wait.
We changed our Iceberg integration to accept filters on the top-level primitive
columns a query reads, including ss_sold_date_sk. This applies when the Spark
extensions are active and every file in the scan is Vortex.
Iceberg first checks the column statistics and skips any file that can't contain
a match. It passes the filter down to the Vortex reader for the remaining files.
The reader can skip chunks within a file and drop individual rows before it
hands a batch back to Spark. For a large IN list, it receives a range instead.
Results with runtime filters
On the SF1000 cluster, enabling data-column filters cut Vortex's total time from
733 s to 707 s. Parquet took 916 s with Iceberg's defaults and 1,300 s with
the filters, 42% longer. The filtered Parquet run used
spiraldb-iceberg-1.13.0-spiral.2, while the baseline used upstream Iceberg
1.12.0. Other differences between the builds may also have affected the timing.
Iceberg's Parquet reader can skip row groups, but it keeps every row in the groups it reads. Spark waited for the keys and then read almost as much data as before. With both readers using data-column filters, switching from Parquet to Vortex reduced query runtime by 45%.
- Vortex, runtime filters
- Parquet, runtime filters
SF1000, S31 driver + 4 × m8id.16xlarge, 256 executor cores
For the headline comparison we used the fastest configuration we measured for each format. Vortex kept the filters and Parquet kept Iceberg's defaults. Against that Parquet baseline, Vortex's query runtime reduction on the cluster grew from 28% to 30%.
- Vortex, runtime filters
- Parquet, Iceberg 1.12
SF100, local NVMe1 × m8id.24xlarge, Spark local mode, 64 threads
SF100, S31 × m8id.24xlarge, Spark local mode, 64 threads
SF1000, S31 driver + 4 × m8id.16xlarge, 256 executor cores
The filters made a bigger difference on the single machine. At SF100 on local NVMe, they cut Vortex's total time from 342 s to 208 s. Q72 alone fell from 44.8 s to 7.4 s. Compared with Parquet, Vortex cut query runtime by 38% on NVMe and 36% on S3, up from 12% and 16% with Iceberg's defaults.
Query by query
At SF1000, nine queries ran at least twice as fast on Vortex. Parquet's four wins were all under 10%.
Vortex is faster on 95 of 99 queries, at least 2× on 9. Geometric mean 1.44×.
Show all timingsHide timings
| Query | Vortex | Vortex, no RF | Parquet 1.12 | Parquet, RF |
|---|---|---|---|---|
| Q1 | 3.08 | 3.18 | 3.16 | 5.21 |
| Q2 | 2.14 | 1.89 | 1.95 | 2.64 |
| Q3 | 2.79 | 2.42 | 3.29 | 3.54 |
| Q4 | 34.58 | 37.44 | 43.92 | 62.84 |
| Q5 | 8.70 | 9.44 | 11.58 | 10.41 |
| Q6 | 3.04 | 2.45 | 4.48 | 12.31 |
| Q7 | 3.35 | 3.83 | 5.03 | 9.43 |
| Q8 | 1.74 | 1.76 | 3.81 | 3.68 |
| Q9 | 0.62 | 0.63 | 0.59 | 0.61 |
| Q10 | 3.11 | 3.47 | 4.12 | 3.65 |
| Q11 | 11.15 | 12.74 | 20.58 | 35.79 |
| Q12 | 1.55 | 1.40 | 1.86 | 5.81 |
| Q13 | 3.06 | 3.02 | 4.94 | 5.18 |
| Q14 | 25.75 | 26.65 | 31.81 | 45.29 |
| Q15 | 2.46 | 2.96 | 4.35 | 4.05 |
| Q16 | 6.57 | 6.57 | 7.47 | 8.25 |
| Q17 | 4.50 | 5.88 | 6.81 | 25.23 |
| Q18 | 3.48 | 3.83 | 4.34 | 3.44 |
| Q19 | 3.10 | 3.28 | 4.74 | 4.63 |
| Q20 | 1.89 | 2.36 | 2.74 | 1.98 |
| Q21 | 1.21 | 1.52 | 4.39 | 4.59 |
| Q22 | 3.13 | 3.12 | 14.12 | 14.11 |
| Q23 | 127.97 | 128.18 | 128.49 | 134.65 |
| Q24 | 8.25 | 8.43 | 10.37 | 22.94 |
| Q25 | 4.14 | 5.26 | 6.71 | 24.86 |
| Q26 | 2.83 | 3.26 | 3.81 | 2.92 |
| Q27 | 3.26 | 2.54 | 3.54 | 16.29 |
| Q28 | 8.64 | 8.71 | 19.29 | 19.43 |
| Q29 | 9.39 | 9.88 | 12.55 | 32.87 |
| Q30 | 2.21 | 2.23 | 6.71 | 6.68 |
| Q31 | 6.03 | 6.27 | 9.44 | 9.68 |
| Q32 | 1.62 | 2.00 | 2.95 | 1.33 |
| Q33 | 3.78 | 4.26 | 5.74 | 5.10 |
| Q34 | 1.73 | 1.79 | 2.51 | 3.43 |
| Q35 | 4.60 | 5.20 | 5.68 | 5.49 |
| Q36 | 3.34 | 3.49 | 5.13 | 7.95 |
| Q37 | 4.62 | 5.51 | 8.53 | 9.92 |
| Q38 | 7.68 | 7.24 | 8.59 | 8.30 |
| Q39 | 4.11 | 4.43 | 9.14 | 8.59 |
| Q40 | 2.44 | 1.99 | 2.78 | 2.42 |
| Q41 | 0.47 | 0.42 | 0.76 | 0.83 |
| Q42 | 2.38 | 1.84 | 2.58 | 3.30 |
| Q43 | 1.74 | 1.43 | 2.26 | 2.96 |
| Q44 | 3.52 | 3.56 | 4.58 | 5.11 |
| Q45 | 1.89 | 6.03 | 7.48 | 7.17 |
| Q46 | 3.12 | 2.43 | 3.81 | 3.84 |
| Q47 | 7.64 | 8.03 | 9.32 | 19.05 |
| Q48 | 3.07 | 6.55 | 8.18 | 9.20 |
| Q49 | 5.81 | 5.91 | 8.67 | 10.76 |
| Q50 | 13.02 | 13.00 | 13.46 | 15.82 |
| Q51 | 8.90 | 9.04 | 10.91 | 10.97 |
| Q52 | 2.14 | 1.89 | 2.66 | 3.10 |
| Q53 | 2.37 | 2.27 | 3.42 | 3.55 |
| Q54 | 3.44 | 3.64 | 6.25 | 13.82 |
| Q55 | 2.20 | 1.86 | 2.72 | 3.21 |
| Q56 | 4.00 | 4.14 | 6.44 | 5.83 |
| Q57 | 4.95 | 5.45 | 6.39 | 5.98 |
| Q58 | 3.92 | 4.02 | 6.14 | 6.26 |
| Q59 | 2.11 | 2.02 | 2.98 | 5.37 |
| Q60 | 4.66 | 4.70 | 7.17 | 5.72 |
| Q61 | 5.59 | 5.23 | 7.99 | 8.02 |
| Q62 | 1.34 | 1.38 | 1.70 | 1.94 |
| Q63 | 2.41 | 2.18 | 3.42 | 3.70 |
| Q64 | 24.95 | 24.81 | 29.53 | 80.35 |
| Q65 | 9.79 | 10.33 | 12.67 | 12.85 |
| Q66 | 1.35 | 1.53 | 2.43 | 2.18 |
| Q67 | 44.58 | 43.99 | 44.18 | 45.22 |
| Q68 | 2.32 | 2.44 | 3.87 | 4.58 |
| Q69 | 2.59 | 3.20 | 3.97 | 3.47 |
| Q70 | 3.29 | 3.46 | 5.04 | 6.68 |
| Q71 | 2.94 | 3.47 | 5.27 | 4.58 |
| Q72 | 17.32 | 18.14 | 28.78 | 92.76 |
| Q73 | 1.62 | 2.01 | 2.53 | 3.31 |
| Q74 | 9.11 | 10.40 | 12.49 | 28.60 |
| Q75 | 12.55 | 12.98 | 19.23 | 16.86 |
| Q76 | 2.38 | 2.31 | 4.01 | 4.39 |
| Q77 | 1.92 | 2.20 | 3.51 | 3.70 |
| Q78 | 23.26 | 23.98 | 27.09 | 40.02 |
| Q79 | 3.00 | 2.82 | 4.21 | 4.69 |
| Q80 | 7.90 | 6.95 | 9.07 | 35.49 |
| Q81 | 2.75 | 2.90 | 4.69 | 4.77 |
| Q82 | 10.06 | 10.71 | 11.49 | 13.99 |
| Q83 | 1.64 | 1.70 | 1.77 | 2.92 |
| Q84 | 1.73 | 1.79 | 2.91 | 2.77 |
| Q85 | 3.08 | 4.03 | 4.52 | 4.57 |
| Q86 | 2.02 | 2.04 | 2.29 | 2.47 |
| Q87 | 7.69 | 7.54 | 8.03 | 7.99 |
| Q88 | 5.34 | 5.61 | 9.55 | 12.49 |
| Q89 | 3.93 | 4.22 | 5.45 | 11.67 |
| Q90 | 1.35 | 1.00 | 1.41 | 2.16 |
| Q91 | 1.13 | 1.10 | 2.63 | 2.53 |
| Q92 | 1.59 | 1.36 | 1.77 | 2.06 |
| Q93 | 26.38 | 26.68 | 28.66 | 31.15 |
| Q94 | 3.78 | 3.96 | 4.16 | 7.63 |
| Q95 | 18.71 | 18.44 | 18.39 | 19.82 |
| Q96 | 1.26 | 1.08 | 1.49 | 2.38 |
| Q97 | 10.97 | 12.11 | 12.02 | 11.45 |
| Q98 | 2.10 | 2.18 | 3.05 | 14.09 |
| Q99 | 2.30 | 2.22 | 2.39 | 2.23 |
A Spark bug we found
When we first enabled runtime filters, Q5 at SF100 on NVMe took 9.9 s on Vortex
and 3.0 s on Parquet. The filter cut web_returns to 51,035 rows, small enough
for Spark to broadcast. Spark switched to a broadcast hash join with
web_sales.
In the Q5 profile, 65% of the CPU samples landed in
BytesToBytesMap.safeLookup. Spark used this hash table for Q5's two-column
join key. Every task read the same table, but each lookup also wrote to it,
incrementing two counters for hash probe statistics. Those counters shared a
cache line with fields every lookup needed to read. As threads probed the table,
the cache line bounced between cores.
Our proposed Spark fix stops
counting probes in safeLookup. It cut Q5 from 9.9 s to 1.42 s on Vortex. On
Parquet with runtime filters off, the same fix cut Q49 from 14.2 s to 4.2 s. All
the benchmark results above include the fix.
Try Vortex on Iceberg
You can follow the upstream integration in Iceberg PR #15915. To try Vortex on your own Iceberg tables, use our builds on Maven Central.
Footnotes
-
Some queries finish in under a second. Others take over a minute. To give each query equal weight, we divide its Vortex runtime by its Parquet runtime, take the geometric mean of those ratios, and subtract it from 1 to get the runtime reduction. The score charts use ClickBench's scoring method. For each query, we add 10 ms to each time and divide by the fastest adjusted time in that comparison. Each bar shows the geometric mean of those ratios, so lower is better and a score of 1.00 means a configuration was fastest on every query. Below each score you'll find the total time for the suite. ↩︎
Train on everything you record.
Spiral keeps video, sensor streams, agent traces, spatial data, and rows in one system. Analytics, search, and training read them straight from object storage.