Repository navigation
Add SstFileReader::MayMatch - #38
Merged
Merged
Conversation
For each key, false means definitely absent; true means it may be present or the filter cannot answer from memory. A full whole-key filter is probed with the user key alone, without building an internal key per key; partitioned filters and missing filters answer true. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SstFileReader::MayMatch takes bare user keys, like MultiGet, and the filter holds user keys without timestamp, so a UDT table got false negatives. Probe keys as given. Fallback calls TableReader::MayMatch; drop the whole_key_filtering guard (FullFilterBlockReader::KeyMayMatch answers true) and the 3-arg overload. Document no file reads and the block / secondary cache lookup. Test the UDT case, the no-filter, prefix-only and partitioned fallbacks, and an empty batch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
murphy-4o
added a commit
to murphy-4o/ClickHouse
that referenced
this pull request
Dec 5, 2026
ClickHouse/rocksdb#38 was squash-merged as ec09a01cc6d; its tree is identical to the PR head 4d2037c77 this branch pointed at. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SstFileReader::MultiGetpays a per-key setup (lookup key, get context, sort) before its bloom filter check. ClickHouse'sUNIQUE KEYprobes check every inserted key against every part's SST, and most keys are absent, so that setup dominates large inserts.SstFileReader::MayMatchchecks a batch of keys against the table's full whole-key filter and returns one bool per key, without file reads.falsemeans the key is absent.truemeans it may be present, or the table cannot answer from memory: no filter, a prefix-only or partitioned filter, or a filter not in the block cache. Other table formats answertruethrough theTableReaderdefault.Replaces #30, which was based on the old
master.🤖 Generated with Claude Code