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

[Parquet] Arrow Coercion & SBBF Check Functions #5661

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

mr-brobot
Copy link
Contributor

Which issue does this PR close?

Closes #5550.

Rationale for this change

I posted a long-winded explanation on the issue.

What changes are included in this PR?

  • Exposed Arrow writer coercion logic in the arrow::coerce_to_parquet_type public function. This allows crate users to use the same coercion logic that occurs in Arrow writer.
  • Added a public convenience function, arrow::sbbf_check, that evaluates an Arrow array against a bloom filter after coercing the values to a target Parquet type. This returns a BooleanArray.

Are there any user-facing changes?

There are two additional public functions (mentioned above). I will add more tests and documentation. There is also some necessary cleanup work (obvious in some areas). Opening this draft to get feedback on the overall direction before proceeding.

@github-actions github-actions bot added the parquet Changes to the parquet crate label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bloom filters for i8 and i16 always return false negatives
1 participant