You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "thomasboelens26 (via GitHub)" <gi...@apache.org> on 2025/10/01 12:24:21 UTC

[I] Parquet - Adaptive bloom filter [arrow-go]

thomasboelens26 opened a new issue, #525:
URL: https://github.com/apache/arrow-go/issues/525

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   I tried using the adaptive bloom filter. Writing a parquet file using the correct writer properties seemed to work fine. But when reading that same parquet file, the bloom filter did not seem to work. It couldn't find any of the values, I know are in the specific column. I tried debugging and came to the following conclusions:
   
   version = v18.4.0
   platform = arm mac
   
   I believe I came across 3 issues in parquet/metadata/adaptive_bloom_filter.go
   
   - When adding multiple hashes, using the InsertBulk function, the code does not check for duplicates. It only checks whether the hash is already present in the largest candidate BloomFilter. So if the new hashes contain multiple identical values, that are not yet present in the BF, the numDistinct field will wrongfully be increased for each of those hashes.
   - the slices.MinFunc and slices.MaxFunc functions, used to determine the largest and the optimal Bloomfilter have a sign error in their comparison func. (Should be a-b in stead of b-a)
   - The bloomFilterCandidate struct should contain a pointer to the blockSplitBloomFilter. Otherwise the data is already released by the finalizer, before it is actually written to file. Maybe the runtime.SetFinalize can also be replaced by the addCleanup function.
   
   ### Component(s)
   
   Parquet


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Parquet - Adaptive bloom filter [arrow-go]

Posted by "thomasboelens26 (via GitHub)" <gi...@apache.org>.
thomasboelens26 commented on issue #525:
URL: https://github.com/apache/arrow-go/issues/525#issuecomment-3359982341

   Hi, 
   I tested your new version in my own codebase and everyting seems to work as expected now. Thank you for the swift response!


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Parquet - Adaptive bloom filter [arrow-go]

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade closed issue #525: Parquet - Adaptive bloom filter
URL: https://github.com/apache/arrow-go/issues/525


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Parquet - Adaptive bloom filter [arrow-go]

Posted by "Mandukhai-Alimaa (via GitHub)" <gi...@apache.org>.
Mandukhai-Alimaa commented on issue #525:
URL: https://github.com/apache/arrow-go/issues/525#issuecomment-3357675997

   take


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Parquet - Adaptive bloom filter [arrow-go]

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade commented on issue #525:
URL: https://github.com/apache/arrow-go/issues/525#issuecomment-3356182102

   Thanks for filing this @thomasboelens26! I'm away at a conference this week, but I can take a look at this next week. If you would be willing to file a PR fixing this directly, that would be fantastic and I can find some time to review it. 
   
   Otherwise, I'll try to get to this next week.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Parquet - Adaptive bloom filter [arrow-go]

Posted by "Mandukhai-Alimaa (via GitHub)" <gi...@apache.org>.
Mandukhai-Alimaa commented on issue #525:
URL: https://github.com/apache/arrow-go/issues/525#issuecomment-3357994400

   Hello, I filed PR fixing these issues. Please feel free to review and see if the fix solves the problem.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org