parquet-java icon indicating copy to clipboard operation
parquet-java copied to clipboard

Unable to create bloomfilter when writing duplicates values for a field

Open asfimport opened this issue 1 year ago • 2 comments

I'm unable to create a bloomfilter for a field, when I perform writes with repeating values. The bloomfilter returned is null when I try to read such a parquet file. If there are no repeating values, the bloomfilter is created without any issue. The working and non-working case in captured in the below repo

https://github.com/MaheshGPai/parquet-mr-test https://github.com/MaheshGPai/parquet-mr-test/blob/main/src/test/java/com/mahesh/test/AppTest.java#L73

Reporter: Mahesh Pai

Note: This issue was originally created as PARQUET-2484. Please see the migration documentation for further details.

asfimport avatar May 28 '24 10:05 asfimport

Gang Wu / @wgtmac: By default, bloom filter will be disabled if dictionary encoding is applied. Please set withDictionaryEncoding(false) while creating the parquet writer and check if this issue still happens.

asfimport avatar May 29 '24 01:05 asfimport

Mahesh Pai: Thanks @wgtmac! When I disable dictionary encoding the bloomfilter is getting created. But I'm curious as to why this works when distinct values are written. With distinct values and dictionary encoding enabled, the writer is generating the bloomfilter

asfimport avatar May 29 '24 05:05 asfimport