Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I know that the bloom filter configuration is successful? #11918

Closed
madeirak opened this issue Jan 6, 2025 · 3 comments
Closed

How do I know that the bloom filter configuration is successful? #11918

madeirak opened this issue Jan 6, 2025 · 3 comments
Labels
question Further information is requested

Comments

@madeirak
Copy link

madeirak commented Jan 6, 2025

Query engine

Spark=3.3.1
Iceberg=1.4.3

Question

After setting new table properties
'write.parquet.bloom-filter-enabled.column.xxx' = 'true',
'write.parquet.bloom-filter-max-bytes' = '100',
How do I know that the bloom filter configuration is successful?

For example, how to see from the parquet file

@madeirak madeirak added the question Further information is requested label Jan 6, 2025
@ebyhr
Copy link
Contributor

ebyhr commented Jan 6, 2025

How about using parquet-cli?
footer option provides bloom filter's offset and length. Also, we can usebloom-filter option to check the column contains bloom filter or not, and whether the provided value doesn't exist or maybe exists in the file:

➜  parquet bloom-filter -c a -v 2 20250106_091836_00029_airuh-4a353534-10e4-4d7e-8d38-4b9edab7bf1b.parquet

Row group 0:
--------------------------------------------------------------------------------
column a has no bloom filter

➜  parquet bloom-filter -c b -v 1 20250106_091836_00029_airuh-4a353534-10e4-4d7e-8d38-4b9edab7bf1b.parquet

Row group 0:
--------------------------------------------------------------------------------
value 1 NOT exists.
➜  parquet bloom-filter -c b -v 2 20250106_091836_00029_airuh-4a353534-10e4-4d7e-8d38-4b9edab7bf1b.parquet

Row group 0:
--------------------------------------------------------------------------------
value 2 maybe exists.

@madeirak
Copy link
Author

madeirak commented Jan 6, 2025

How about using parquet-cli? footer option provides bloom filter's offset and length. Also, we can usebloom-filter option to check the column contains bloom filter or not, and whether the provided value doesn't exist or maybe exists in the file:

➜  parquet bloom-filter -c a -v 2 20250106_091836_00029_airuh-4a353534-10e4-4d7e-8d38-4b9edab7bf1b.parquet

Row group 0:
--------------------------------------------------------------------------------
column a has no bloom filter

➜  parquet bloom-filter -c b -v 1 20250106_091836_00029_airuh-4a353534-10e4-4d7e-8d38-4b9edab7bf1b.parquet

Row group 0:
--------------------------------------------------------------------------------
value 1 NOT exists.
➜  parquet bloom-filter -c b -v 2 20250106_091836_00029_airuh-4a353534-10e4-4d7e-8d38-4b9edab7bf1b.parquet

Row group 0:
--------------------------------------------------------------------------------
value 2 maybe exists.

Thx for reply, It seems to work, I'll try it

@hashmapybx
Copy link

I'll try it also.the bloom filter is success.

Clipboard_Screenshot_1736316932

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants