Comment on Bloom filters: real-world applications

Reader9@programming.dev ⁨1⁩ ⁨year⁩ ago

I haven’t used them in Spark directly but here’s how they are used for computing sparse joins in a similar data processing framework:

Let’s say you want to join some data “tables” A and B. When B has many more unique keys than are present in A, computing “A inner join B” would require lots of shuffling if B, including those extra keys.

Knowing this, you can add a step before the join to compute a bloom filter of the keys in A, then apply the filter to B. Now the join from A to B-filtered only considers relevant keys from B, hopefully not with much less total computation than the original join.

source
Sort:hotnewtop