Skip to content

refactor(index)!: unify file and realtime index results - #597

Open
lxy-9602 wants to merge 6 commits into
apache:mainfrom
lxy-9602:refactor-rt-index-result
Open

lxy-9602 wants to merge 6 commits into
apache:mainfrom
lxy-9602:refactor-rt-index-result

Conversation

@lxy-9602

@lxy-9602 lxy-9602 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Purpose

Unify file and realtime index results with shared IndexResult, BitmapResult and ScoredIndexResult templates.

Scalar results must not omit matches. Exact results skip value rechecking; inexact results are intersected before scanning the remaining candidates.

Disable value pruning for bitmap and BSI indexes with truncated nanosecond timestamps, preserving null checks. Reject timestamp literals that lose precision in the field type.

Tests

Update existing tests and add coverage for candidate intersection, exact-result selection, scalar rechecking and timestamp precision.

API and Format

Result types become template aliases, realtime scalar visitors return result objects, and separate result headers are removed. Index plugins require source updates and recompilation. Storage formats and protocols are unchanged.

Documentation

Update index API references and document scalar result guarantees and timestamp precision requirements.

Generative AI tooling

Generated-by: OpenAI Codex (GPT-6)

@SteNicholas SteNicholas left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@lxy-9602, I left some comments for the observed regressions and the timestamp pruning behavior. PTAL.

Comment thread docs/source/user_guide/file_index.rst Resolved

@SteNicholas SteNicholas left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@lxy-9602, I reproduced the file-index test failures, the legacy file-index read regression, and the floating-point realtime write regression. Please also keep hash postings inexact until their values are verified.

This branch has not been deployed

No deployments
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.

2 participants