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

Support bloom filters in lists/nested columns #105

Merged
merged 8 commits into from
Nov 28, 2023

Conversation

shannonwells
Copy link
Collaborator

@shannonwells shannonwells commented Nov 21, 2023

Problem

Could not create and read bloom filters for a nested list.

Solution

For bloom filters, treat column names as the full path and not just the first part of the path in the schema.

Closes #98

In the course of implementing this I ran across a couple of issues which are added (#104 #103 )

with @rlaferla

Change summary:

  • Modify the writer to use the full column path
  • Then bloom filter options for a nested column/list can be specified by the comma-separated full path.

Steps to Verify:

  1. Tests new and old should all pass.


bloomFilters = await reader.getBloomFiltersFor(["name", "quantity"]);
it('writes bloom filters for stock,warehouse', async () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test a plain nested column bloom filter.

});
describe("a simple schema with a nested list", () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests for a bloom filter for a nested list column.

@shannonwells shannonwells marked this pull request as ready for review November 21, 2023 20:15
@shannonwells shannonwells changed the title Feat/support bloomfilters in lists Support bloom filters in lists/nested columns Nov 21, 2023
Copy link
Member

@wilwade wilwade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One golfing suggestion, but otherwise it is great.

  • Local build
  • Local pack and install in a bad setup I had

All works!

lib/writer.ts Outdated Show resolved Hide resolved
Yes

Co-authored-by: Wil Wade <[email protected]>
@shannonwells shannonwells merged commit 19707ef into main Nov 28, 2023
1 check passed
@shannonwells shannonwells deleted the feat/support-bloomfilters-in-lists branch November 28, 2023 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Are bloom filters supported on LIST types?
2 participants