Skip to content
Back to blog

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.

Initial Results (Geometric Mean of Query Latency)
  • Vortex
  • Parquet

SF100, local NVMe1 × m8id.24xlarge, Spark local mode, 64 threads

1.04342 sVortex
1.17383 sParquet

SF100, S31 × m8id.24xlarge, Spark local mode, 64 threads

1.01413 sVortex
1.20477 sParquet

SF1000, S31 driver + 4 × m8id.16xlarge, 256 executor cores

1.00733 sVortex
1.38916 sParquet

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:

SQL
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%.

Geometric Mean of Query Latency
  • Vortex, runtime filters
  • Parquet, runtime filters

SF1000, S31 driver + 4 × m8id.16xlarge, 256 executor cores

1.00707 sVortex
1.821300 sParquet, RF

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%.

Geometric Mean of Query Latency
  • Vortex, runtime filters
  • Parquet, Iceberg 1.12

SF100, local NVMe1 × m8id.24xlarge, Spark local mode, 64 threads

1.03208 sVortex
1.66383 sParquet 1.12

SF100, S31 × m8id.24xlarge, Spark local mode, 64 threads

1.01280 sVortex
1.57477 sParquet 1.12

SF1000, S31 driver + 4 × m8id.16xlarge, 256 executor cores

1.00707 sVortex
1.44916 sParquet 1.12

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 speedup over Parquet, per query log scale, higher is faster
Tier

Vortex is faster on 95 of 99 queries, at least 2× on 9. Geometric mean 1.44×.

Show all timingsHide timings
SF1000, S3, seconds, best of two. 1 driver + 4 × m8id.16xlarge, 256 executor cores.
QueryVortexVortex, no RFParquet 1.12Parquet, RF
Q13.083.183.165.21
Q22.141.891.952.64
Q32.792.423.293.54
Q434.5837.4443.9262.84
Q58.709.4411.5810.41
Q63.042.454.4812.31
Q73.353.835.039.43
Q81.741.763.813.68
Q90.620.630.590.61
Q103.113.474.123.65
Q1111.1512.7420.5835.79
Q121.551.401.865.81
Q133.063.024.945.18
Q1425.7526.6531.8145.29
Q152.462.964.354.05
Q166.576.577.478.25
Q174.505.886.8125.23
Q183.483.834.343.44
Q193.103.284.744.63
Q201.892.362.741.98
Q211.211.524.394.59
Q223.133.1214.1214.11
Q23127.97128.18128.49134.65
Q248.258.4310.3722.94
Q254.145.266.7124.86
Q262.833.263.812.92
Q273.262.543.5416.29
Q288.648.7119.2919.43
Q299.399.8812.5532.87
Q302.212.236.716.68
Q316.036.279.449.68
Q321.622.002.951.33
Q333.784.265.745.10
Q341.731.792.513.43
Q354.605.205.685.49
Q363.343.495.137.95
Q374.625.518.539.92
Q387.687.248.598.30
Q394.114.439.148.59
Q402.441.992.782.42
Q410.470.420.760.83
Q422.381.842.583.30
Q431.741.432.262.96
Q443.523.564.585.11
Q451.896.037.487.17
Q463.122.433.813.84
Q477.648.039.3219.05
Q483.076.558.189.20
Q495.815.918.6710.76
Q5013.0213.0013.4615.82
Q518.909.0410.9110.97
Q522.141.892.663.10
Q532.372.273.423.55
Q543.443.646.2513.82
Q552.201.862.723.21
Q564.004.146.445.83
Q574.955.456.395.98
Q583.924.026.146.26
Q592.112.022.985.37
Q604.664.707.175.72
Q615.595.237.998.02
Q621.341.381.701.94
Q632.412.183.423.70
Q6424.9524.8129.5380.35
Q659.7910.3312.6712.85
Q661.351.532.432.18
Q6744.5843.9944.1845.22
Q682.322.443.874.58
Q692.593.203.973.47
Q703.293.465.046.68
Q712.943.475.274.58
Q7217.3218.1428.7892.76
Q731.622.012.533.31
Q749.1110.4012.4928.60
Q7512.5512.9819.2316.86
Q762.382.314.014.39
Q771.922.203.513.70
Q7823.2623.9827.0940.02
Q793.002.824.214.69
Q807.906.959.0735.49
Q812.752.904.694.77
Q8210.0610.7111.4913.99
Q831.641.701.772.92
Q841.731.792.912.77
Q853.084.034.524.57
Q862.022.042.292.47
Q877.697.548.037.99
Q885.345.619.5512.49
Q893.934.225.4511.67
Q901.351.001.412.16
Q911.131.102.632.53
Q921.591.361.772.06
Q9326.3826.6828.6631.15
Q943.783.964.167.63
Q9518.7118.4418.3919.82
Q961.261.081.492.38
Q9710.9712.1112.0211.45
Q982.102.183.0514.09
Q992.302.222.392.23
Each column is one query, in the order of the query numbers: its Parquet time on Iceberg 1.12 divided by its Vortex time. Columns above the 1× line ran faster on Vortex. Hover, tap, or arrow through the columns for exact times, or open the table of all timings.

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

  1. 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.