Repository navigation
feat(realtime): support precise scalar filtering with vector and full-text search - #546
Merged
Merged
Conversation
lszskye
reviewed
Nov 17, 2026
lszskye
reviewed
Nov 17, 2026
lszskye
reviewed
Nov 18, 2026
lszskye
reviewed
Nov 18, 2026
lszskye
reviewed
Nov 18, 2026
lxy-9602
force-pushed
the
rt-precise-scalar
branch
from
November 18, 2026 07:30
05b9e59 to
bf4c886
Compare
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.
Purpose
Linked issue: #158
Enable precise index evaluation for real-time append and deduplicate reads, combining scalar predicates with vector and full-text search.
Scalar predicates and pinned deletion visibility are applied before TopK, so filtered or deleted rows do not consume result slots. Queries read each segment within the intersection of its pinned bounds and the requested offset range, excluding committed prefixes and later writes.
Real-time primary-key merge remains unsupported in precise mode. Lumina real-time search integration is deferred to a separate PR; search behavior is covered with mocks.
Tests
Added and updated unit tests for predicate evaluation, search capabilities, score alignment, offset bounds, deletion visibility, and pinned-source lifetime.
Added six integration tests covering:
API and Format
Public C++ API changes include:
IndexReaderCapabilities, shared by file and real-time index readers.RealtimeIndexedReadViewandRealtimeIndexReadSourceinterfaces.RealtimeQueryContext.The reader inheritance and query-context layout change. No storage format or serialized protocol changes.
Documentation
Updated API comments for supported table modes, row-ID domains, pinned visibility, and search filtering requirements.
Generative AI tooling
Generated-by: OpenAI Codex