Skip to content

PARQUET-1630: Update Bloom filter format - #146

Merged
rdblue merged 8 commits into
apache:masterfrom
chenjunjiedada:PARQUET-1630
Aug 26, 2019
Merged

PARQUET-1630: Update Bloom filter format#146
rdblue merged 8 commits into
apache:masterfrom
chenjunjiedada:PARQUET-1630

Conversation

@chenjunjiedada

Copy link
Copy Markdown
Contributor

No description provided.

@chenjunjiedada

Copy link
Copy Markdown
Contributor Author

Hi @jbapple,

Could you please help to take a look firstly?

@jbapple

jbapple commented Aug 5, 2019

Copy link
Copy Markdown
Contributor

In the interest of expediency, I have added my own PR, here:

#147

Would you be willing to limit this patch to the section about the file format only?

@chenjunjiedada

Copy link
Copy Markdown
Contributor Author

Thanks @jbapple, the algorithm description looks much clear:)

Will update this to just format section

@chenjunjiedada

Copy link
Copy Markdown
Contributor Author

Done! @jbapple please take a look this PR as well.

Comment thread BloomFilter.md Outdated
filter data offset is stored in column chunk metadata. Here are Bloom filter definitions in
thrift:
Each multi-block Bloom filter is required to work for only one column chunk. The data of a multi-block Bloom
filter contains a header of Bloom filter, which must includes the size of the filter in bytes, the algorithm,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

when you say "a header of Bloom filter", do you mean "the header of one Bloom filter"?

Also, "include the size", not "includes the size".

Comment thread BloomFilter.md Outdated
Comment thread BloomFilter.md Outdated

```

The Bloom filter data is stored right after pages indexes, the file layout is look like:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
The Bloom filter data is stored right after pages indexes, the file layout is look like:
The Bloom filter data is stored right after the page indexes, and the file layout looks like:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is still incorrect. Can you look at my suggestion more carefully and identify what you missed?

@chenjunjiedada chenjunjiedada Aug 5, 2019

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops. I think I forgot to use git add before git commit --amend.

Comment thread BloomFilter.md Outdated
filter contains the header of one Bloom filter, which must include the size of the filter in bytes, the algorithm,
the hash function, and the Bloom filter bitset. The offset in column chunk metadata points to the start of
the Bloom filter header.
Here are Bloom filter definitions in thrift:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Here are Bloom filter definitions in thrift:
Here are the Bloom filter definitions in thrift:

@jbapple

jbapple commented Aug 5, 2019

Copy link
Copy Markdown
Contributor

LGTM

@chenjunjiedada

Copy link
Copy Markdown
Contributor Author

@jbapple From the mail thread we are planning to add compression into bloom filter file format, so how about adding a field to store compression algorithm?

@jbapple

jbapple commented Aug 8, 2019

Copy link
Copy Markdown
Contributor

I think this PR (and other PRs should) do one thing each.

I said in the email thread "I'll send a PR for that after #147 is checked in to avoid rebase racing."

@chenjunjiedada

Copy link
Copy Markdown
Contributor Author

@rdblue, could you please take a look at this as well. This doesn't include compression thing, Jim will submit a separate PR for that as mentioned.

Comment thread BloomFilter.md Outdated
Comment thread BloomFilter.md Outdated
@chenjunjiedada
chenjunjiedada force-pushed the PARQUET-1630 branch 2 times, most recently from ea57431 to cbfcbc1 Compare August 19, 2019 16:21
@chenjunjiedada chenjunjiedada changed the title PARQUET-1630: Resolve Bloom filter spec concerns PARQUET-1630: Update Bloom filter format Aug 20, 2019
Comment thread BloomFilter.md Outdated
@rdblue

rdblue commented Aug 21, 2019

Copy link
Copy Markdown
Contributor

@chenjunjiedada, this is getting close. Please have a look at my latest comments.

@rdblue

rdblue commented Aug 26, 2019

Copy link
Copy Markdown
Contributor

+1

@rdblue
rdblue merged commit 3fb10e0 into apache:master Aug 26, 2019
@chenjunjiedada
chenjunjiedada deleted the PARQUET-1630 branch May 15, 2020 01:41
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.

3 participants