Skip to content

Fix incorrect results when probing multiple bloom filters - #24

Open
jianhongshi123 wants to merge 1 commit into
robust-sql:mainfrom
jianhongshi123:dev/fix_multiple_bf_probe
Open

Fix incorrect results when probing multiple bloom filters#24
jianhongshi123 wants to merge 1 commit into
robust-sql:mainfrom
jianhongshi123:dev/fix_multiple_bf_probe

Conversation

@jianhongshi123

Copy link
Copy Markdown
Contributor

When PhysicalProbeFilter applies multiple Bloom filters, it reuses the same selection vector for every lookup. After the first input.Slice, this vector is kept as the mapping from the sliced input to the original input. The next lookup produces a new selection relative to the sliced input, but writes it into the same selection vector, overwriting the previous mapping before these two selections are combined. This results in incorrect row indices and query results.

This PR uses a separate selection vector for each Bloom filter lookup.

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.

1 participant