zhjwpku opened a new issue, #55824:
URL: https://github.com/apache/arrow/issues/55824
### Describe the bug, including details regarding any error messages,
version, and platform.
Arrow C++ 25.0.1 on macOS arm64 throws `ParquetException: Given length of
bitset is illegal` when reading a column Bloom filter written by parquet-go
v0.25.1.
To reproduce, write one row group with an INT32 column named Value
containing 0 through 63 and enable `parquet.SplitBlockFilter(10, "Value")`.
This produces a 96-byte bitset (three 32-byte blocks).
```cpp
auto reader = parquet::ParquetFileReader::OpenFile("sample.parquet", false);
auto filter =
reader->GetBloomFilterReader().RowGroup(0)->GetColumnBloomFilter(0);
```
The second call throws. The reader should return a 96-byte filter that
reports all 64 inserted values as present. The Parquet format permits three
blocks, but the bitset overload of `BlockSplitBloomFilter::Init` requires its
length to be a power of two. [Parquet Bloom filter
specification](https://github.com/apache/parquet-format/blob/master/BloomFilter.md#technical-approach)
### Component(s)
C++
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]