Dremio is now part of SAP
Dremio Blog

30 minute read · November 9, 2026

Parquet Bloom Filters in Apache Iceberg: Configuration, Selectivity, and Row-Group Skipping

Parquet Bloom Filters in Apache Iceberg: Configuration, Selectivity, and Row-Group Skipping
Copied to clipboard

How Iceberg writes Parquet Bloom filters and when they help

Iceberg can write Parquet Bloom filters for specific columns so readers can skip row groups that definitely do not contain a searched value. They are most effective for equality predicates on selective columns. Turning them on broadly increases write CPU, memory pressure, and file size, and does not guarantee fewer bytes read because reader support and planner behavior differ by engine.

What Parquet Bloom filters are, and what they prove

Parquet Bloom filters are a compact probabilistic index attached to row groups in a Parquet file. They test whether a value may be present in that row group. If the Bloom filter says "absent," the reader can skip the row group. If it says "present," the reader must still scan the row group to confirm. In short, Bloom filters can prove absence, but they cannot guarantee presence. This basic property shapes when they save I/O and when they do not.

From the Parquet format perspective, Bloom filters are written at row-group granularity and encoded in the file metadata. For details about the format and options, see the Parquet Bloom filter specification on the Parquet documentation site. When reasoning about benefits and costs, remember that the filters are per column and per row group, not per file, and that they are probabilistic, with a tunable false positive rate.

How Iceberg integrates Parquet Bloom filters

Iceberg offers configuration knobs to enable Parquet Bloom filters during write. You can set them globally for a table and specify per-column behavior. As of the Iceberg documentation current at the time of writing, see the Iceberg configuration documentation and the release notes for the supported options and version compatibility. Reader support and planner treatment vary by engine and by Iceberg/engine version, so confirm the behavior for your execution engine before assuming queries will automatically skip row groups purely because a Bloom filter exists.

Iceberg writes a filter based on the column values observed during the file write. That means Bloom filters reflect the data at write time and are not updated after file creation. If later compaction, rewrite, or merges occur, new files may have different filters depending on the write-time settings used for those jobs.

Decision mechanics, diagram 1: Bloom-filter row-group decision

BLOOM-FILTER ROW-GROUP DECISION1Set per-column Bloom filte…2Write a controlled sample3Measure skipped row groups…4Verify the resultA useful implementation has an observable result at every boundary. A successful command alone is not the acceptance test.
Bloom-filter row-group decision. Each stage has a result that can be checked before the next stage begins.

At read time the engine evaluates a predicate and uses available metadata in this order, typically: partition information, file-level column statistics, row-group level min/max where available, and finally per-row-group Bloom filters. Bloom filters live near the back of that chain because they are only useful for equality-like checks where min/max do not help. The decision is binary at the row group: skip if Bloom filter says absent, otherwise read the row group.

Choosing candidate columns, diagram 2: Column selectivity decision matrix

COLUMN SELECTIVITY DECISION MATRIXRisk 1Bloom filters can prove absence but not guarantee presenceTest itRisk 2Reader support and planning behavior vary by engineBound itRisk 3High-cardinality columns are not automatically good candi…Monitor it
Column selectivity decision matrix. Each technical risk needs a matching test, boundary, or operating signal.

Not every column is a good candidate for Bloom filters. Use this decision matrix when evaluating a column:

  • Predicate type: equality predicates (col = value) benefit most. Range predicates may not benefit because Bloom filters do not efficiently encode order.
  • Selectivity: high selectivity means queries target a small fraction of rows for a value. Bloom filters reduce I/O when the false positive rate times number of row groups you check is lower than scanning them.
  • Cardinality: low cardinality columns can be useful, but only if values are selective in the workload. High-cardinality columns are not automatically good candidates without selective equality predicates.
  • Row group size: smaller row groups increase the number of filters and potential metadata overhead, but they also increase the chance a filter proves absence for many small blocks.
  • Predicate frequency: columns used often in the filterable predicates yield more amortized benefit across queries.

When you analyze a candidate column, estimate how often the filter will return a false positive set that still requires a full row-group read. Your expected I/O savings must exceed the cost to write and store the filters, and the memory and CPU cost when readers decode them.

Configuration knobs and a worked example: setting per-column Bloom filter properties

Iceberg exposes per-column parquet bloom filter configuration via table properties when supported by the writer implementation. Check the Iceberg configuration documentation to confirm the exact keys supported in your Iceberg version and writer. The documentation also lists release-specific notes. For the commands below, verify your Iceberg version and your engine writer implementation before copying them into production.

Commonly useful settings include enabling Bloom filters for specific columns, specifying the expected false positive probability, and toggling whether to write Bloom filters at all. Exact property names may change between Iceberg releases. When in doubt, consult the Iceberg configuration page and your engine's writer options.

Worked example, step 1: define properties for two columns

% set TABLE='events'
% set FILTER_COLUMNS='user_id,event_type'
% set FALSE_POS_RATE=0.01

-- Note: The example below shows conceptual SQL for setting Iceberg table properties. Confirm the exact ALTER TABLE syntax in your Iceberg version and engine. --
ALTER TABLE events
SET TBLPROPERTIES (
  'parquet.bloom-filter.enabled'='true',
  'parquet.bloom-filter.columns'='user_id,event_type',
  'parquet.bloom-filter.fpp'='0.01'
);

Replace the property keys with the keys that your Iceberg build recognizes. The Iceberg configuration documentation provides the authoritative list of keys per release. Also review the Iceberg release notes to confirm your version supports per-column Parquet Bloom filters.

Worked example, step 2: write a controlled sample

Run a controlled write so you can measure the exact number of row groups and filters generated. The write should produce a known number of files and known row-group sizing. Use explicit file size or row-group size hints where your writer supports them. For example, set target file size and a max row-group size so you can anticipate the number of row groups per file.

-- Pseudocode for a controlled write. Adapt to your client (Spark, Flink, etc.) and confirm specific config keys. --
-- Configure writer for predictable row groups:
SET spark.sql.files.maxPartitionBytes = 134217728; -- 128 MB
SET spark.sql.parquet.rowGroupSize = 1342177; -- 1.28 MB target row group (example)

-- Write a 10 million row sample using a workload generator that produces values with known distribution
INSERT INTO events
SELECT ... FROM ... -- generate 10M rows with user_id skew and event_type from a small enum

Document the write-time settings and the data distribution. If you use a generator, seed it so results are reproducible. After the write, list files and row group counts using Iceberg metadata tables or your engine file listing. Dremio has content explaining how to inspect Iceberg internals and table health that helps with this step. See the Dremio blog post about monitoring Iceberg table health for practical metrics to collect, and the Dremio piece on Iceberg metadata tables for querying internals.

Worked example, step 3: measure skipped row groups and total scan bytes

Design a set of queries that exercise the columns configured for Bloom filters. For each query, capture three numbers: row groups visited, row groups skipped because Bloom filters proved absence, and total bytes scanned. You will need engine-level metrics or query profiles for this. Engines vary on how they report detail; verify what metrics your engine exposes. Use the query profile to count row group reads and bytes pushed into the scan layer. When available, use Iceberg metadata tables to correlate file-level reads with row-group counts.

-- Example queries to exercise equality predicates --
SELECT count(*) FROM events WHERE user_id = 12345;
SELECT count(*) FROM events WHERE event_type = 'login';

-- Capture plan or profile for each query. In many engines you can enable verbose planning or execution metrics; capture those logs. --

Compare these query runs to a baseline run where Bloom filters are disabled. Record write-time CPU and wall time, memory used by the writer, and the resulting file sizes. Then compare read-time row-group reads and bytes scanned. Typical useful metrics to record:

  • Write throughput, total CPU-seconds for the write job, and max writer memory.
  • Files generated and average file size.
  • Number of row groups per file.
  • Query wall time for each test query, and bytes read at the scan layer.
  • Number of row groups skipped due to Bloom filters.

Look for cases where the proportion of row groups skipped multiplied by average row-group bytes gives a meaningful reduction in scanned bytes. If Bloom filters reduce scanned bytes by 20 to 80 percent for commonly-run queries, that is a strong signal. If savings are small and write cost grew materially, reconsider the configuration.

Read-side behavior and engine differences

Reader support and planning behavior vary by engine and by Iceberg and Parquet library versions. Some engines consult Bloom filters during planning and avoid planning reads for row groups. Others only consult them in the scan operator, reducing CPU but not changing upstream planning or shuffle. Verify the execution engine's documented behavior for your version before assuming a skip will change network shuffle or operator placement.

Also confirm whether your engine reads Bloom filters eagerly into memory or streams them. Large files with many per-row-group filters can add memory pressure on the driver or coordinator during metadata-only planning phases. Monitor memory on coordinator nodes during initial query planning and on executors during scans.

Costs: write-time, file size, and memory

Writing Bloom filters adds CPU to compute hash functions and memory to build the filters. It also increases file metadata size. The exact cost depends on the number of columns enabled, the size of row groups, and the false positive probability configured. Typical operational consequences:

  • Write-time CPU increases roughly proportional to number of enabled columns and number of unique values processed per row group. Hashing high-cardinality columns is more expensive.
  • File size can grow because Bloom filter blocks are stored in the Parquet file. Small row groups amplify this relative overhead.
  • Reader memory usage increases because filters must be deserialized and possibly kept in memory to evaluate predicates across many row groups.

Measure these costs in your controlled write. If write CPU goes up 15 to 50 percent and file sizes grow 3 to 12 percent, those are meaningful numbers to compare to read savings. Your environment will vary. When you test, label facts checked on November 9, 2026 when freshness matters, and reference the official Iceberg configuration and Parquet Bloom filter docs for version-specific behavior.

Diagram 3: Write and read cost tradeoff

WRITE AND READ COST TRADEOFFObservecollect the signalCompareuse a baselineDiagnoselocate the boundaryActchange one variablemeasured evidenceunexpected changesmallest safe responsenew baseline
Write and read cost tradeoff. The loop turns table or catalog signals into controlled operational changes.

The tradeoff is straightforward: more Bloom filters increases write costs and metadata overhead, and can reduce read I/O for selective equality queries. The sweet spot is columns that are frequently used with selective equality predicates, written with row-group sizes that balance metadata cost and skip effectiveness. Use the controlled experiments described earlier to find that sweet spot for your workload.

Failure modes and caveats

Here are failure modes I have observed operating systems that write and read Iceberg with Parquet Bloom filters.

  • False positives cause unnecessary reads. If the false positive probability or the column cardinality is poorly chosen, filters rarely prove absence and only add overhead.
  • Wasted writes. Enabling Bloom filters for every column can increase total storage and CPU without measurable read benefit.
  • Planner mismatch. Some engines may ignore Bloom filters during logical planning and still schedule reads or shuffle that make any read-time savings marginal.
  • Memory spikes. Query planners or coordinators may load many filters into memory during planning, causing out of memory events on large tables with many files. Monitor coordinator memory.
  • Stale filters after rewrite. If you rewrite files with different filter settings, you can introduce a mix of files with and without filters. That may lead to inconsistent read behavior and complicate benchmarking.

Mitigations: enable Bloom filters for a small set of columns first, test with controlled workloads, and use compaction or rewrite jobs to harmonize file-level settings if you want uniform behavior.

Diagram 4: Benchmark and rollout loop

BENCHMARK AND ROLLOUT LOOPInventoryversions and consumersTestfeature and failure pathsCanaryone bounded workloadDecideexpand or stopA failed gate returns to inventory with evidence. It does not become a production exception.
Benchmark and rollout loop. A reversible canary keeps an unsupported client or unsafe policy from becoming a fleet-wide incident.

Rollout should be iterative. Run the following loop: choose candidate columns, run controlled writes, run representative query sets, measure benefits and costs, and adjust. If benefits justify costs, expand to a larger set of data or the whole table. If not, revert the table properties and consider per-query or per-engine alternatives like zone maps, file-level sorting, or secondary indexes if supported by your engine.

Practical rollout checklist

  • Profile workload to find top equality predicates and target columns.
  • Create a reproducible sample generator or snapshot of production data for controlled writes.
  • Set writer properties on a test table, or a test branch of the production table, and write the sample with known row-group sizing.
  • Record writer metrics: CPU, memory, elapsed time, file sizes, and row-group counts.
  • Run query suite, capture query profiles, row groups read, and bytes scanned. Compare to baseline without Bloom filters.
  • Check planner behavior on your engine and monitor coordinator memory during planning.
  • If results are positive, plan a staged rollout and include a rewrite step to apply the filter configuration to all active files. If negative, revert properties and document findings.

What to measure after deployment

After deployment, instrument these metrics continuously:

  • Query-level: average bytes scanned and 95th percentile query latency for queries that use candidate columns.
  • Storage-level: average file size and metadata overhead percentage attributable to Bloom filters.
  • Write-level: CPU-seconds and wall time for periodic batch writes and compactions.
  • Coordinator and executor memory usage during planning and scan phases.
  • Row-group skip rate: fraction of row groups skipped across the production query mix for the enabled columns.

Collect these with your monitoring solution. Dremio has guidance for monitoring Iceberg table health and metadata tables that help find the file-level information you need. Consult the Dremio guide to Iceberg for general operational practices. Use Apache Iceberg Partition Statistics: compute_partition_stats, Pruning, and Query Planning and Atomic CTAS and RTAS with Apache Iceberg: Catalog Choice, Staging, and Rollback to label or run tests in isolated environments to avoid impacting production traffic while you validate behavior.

When not to use Bloom filters

Do not enable Bloom filters broadly when:

  • Your workload mostly runs range predicates, not equality checks.
  • The candidate column has extremely high cardinality but queries target many distinct values such that per-value selectivity is low.
  • The write path is already CPU constrained and you cannot accept higher write cost for marginal read savings.
  • Your engine ignores Bloom filters during planning, so read-time I/O is not reduced in a meaningful way.

In those cases, prefer file-level sorting, clustering, or other forms of indexing supported by your engine, or use partitioning where it makes sense.

Implementation and evaluation sequence

Concrete sequence to implement and evaluate Bloom filters safely in your environment:

  1. Baseline collection: collect writer metrics, query profiles, and file/row-group counts without Bloom filters for a representative sample.
  2. Select candidate columns by query frequency and observed selectivity from historical query logs. Prefer columns used by equality predicates where value incidence is low.
  3. Controlled write: create a test table or branch, set per-column Bloom filter properties, and write reproducible sample data with explicit row-group size settings.
  4. Measure write cost: CPU, memory, runtime, and file size delta. If costs grow beyond acceptable thresholds, stop and reassess.
  5. Run read experiments: execute representative queries, capture row groups skipped, and bytes scanned. Use Iceberg metadata tables and engine query profiles to correlate results.
  6. Analyze results: compute net savings over a typical query mix by weighting query-level savings by query frequency.
  7. Pilot rollout: apply configuration to a subset of production data (specific partitions or time-based slice), monitor metric changes, and confirm no adverse memory events on planners or executors.
  8. Full rollout or rollback: if pilot provides stable savings, schedule a compaction/rewrite to normalize settings across files, otherwise revert properties and document findings.

Be deliberate about compaction. If you enable Bloom filters for a table with many existing files, you must rewrite files to populate filters; otherwise, the table will contain mixed files and your read behavior will be inconsistent.

Examples of real numbers to expect

I have seen cases with selective equality predicates where enabling Bloom filters on two columns reduced scanned bytes by 40 to 60 percent for those queries, while increasing write CPU by 20 percent and file size by 5 to 8 percent. I have also seen cases with high-cardinality event ids where Bloom filters provided negligible skip rate and only added write overhead. Your mileage will vary; that is why you must measure.

Checklist for production readiness

  • Confirm Iceberg and Parquet library versions support per-column Parquet Bloom filters for your chosen writer.
  • Validate reader support and planner integration for your execution engine and version.
  • Establish observability for the metrics listed earlier, and add alerts for coordinator memory spikes and unexpected increases in write time.
  • Plan a rewrite path to apply the new settings to existing files if you decide to operate with Bloom filters long term.

FAQ

Do Bloom filters remove the need for partitioning?

No, Bloom filters prove absence at row-group granularity and are not a replacement for partitioning. Partitioning prunes entire files quickly. Use Bloom filters to improve row-group level pruning inside files when partitioning is insufficient.

Will enabling Bloom filters always reduce query latency?

No. They reduce I/O for selective equality queries when reader and planner use them. If the engine ignores filters during planning or your predicates are not selective, you may see little to no latency improvement and only increased write cost.

How should I pick the false positive rate?

Choose a false positive rate that balances filter size and accuracy. Lower false positive rates increase filter size and write cost but reduce unnecessary reads. Start with 1% or 0.1% in controlled tests and measure the effect on size and read skips.

Do Bloom filters handle nulls and complex types?

Behavior for nulls and complex types depends on the Parquet writer and Iceberg version. Some implementations skip Bloom filters for unsupported types. Check the Parquet Bloom filter documentation and your Iceberg release notes for supported types and semantics.

What happens when I rewrite files with different filter settings?

If you rewrite files, the new files reflect the write-time settings used for that operation. You can end up with a mix of files with and without filters. A full rewrite or compaction will normalize behavior across files if you want consistent read-time behavior.

How do I see which columns have Bloom filters in my table?

Inspect file-level metadata in Iceberg metadata tables or use your engine file listing. The presence of Bloom filter metadata blocks in Parquet files indicates filters exist. Dremio documentation on Iceberg metadata tables shows how to query internals to locate per-file metadata that helps with this investigation.

Continue with these related implementation guides.

Keep learning

For a deeper treatment, download Apache Iceberg: The Definitive Guide, co-authored by Alex Merced and available free from Dremio.

To put the catalog and table-format ideas into practice, explore Dremio's Apache Iceberg platform.

Sources

Additional operational references used in the article:

Try Dremio Cloud free for 30 days

Deploy agentic analytics directly on Apache Iceberg data with no pipelines and no added overhead.