You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 40e1463
Browse filesBrowse the repository at this point in the historyBrowse files
[fix](be) Validate SNII count fast-path document frequency (apache#66877)
### What problem does this PR solve?
Issue Number: None
Related PR: apache#66052
Problem Summary: SNII's count-only shortcut trusted the persisted
dictionary document frequency without checking it against Core document
statistics. A corrupted 10-row segment whose posting contains two
documents but whose dictionary entry records df=100 could fabricate a
100-id bitmap in both nullable and non-nullable paths, producing an
inflated count after segment masking. Validate df against both total and
indexed document counts before fabricating the count-shaped bitmap and
report the cross-section mismatch as index corruption. Add CRC-valid
nullable and non-nullable fixtures that rewrite only df while preserving
real two-document postings.
### Release note
Fix SNII count-only queries to reject corrupted document frequencies
outside the segment document domain.
0 commit comments