Fixes for inverted indexes encoding - [MOD-8248]#5347
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5347 +/- ##
==========================================
+ Coverage 87.06% 87.54% +0.47%
==========================================
Files 195 196 +1
Lines 34802 34740 -62
==========================================
+ Hits 30302 30414 +112
+ Misses 4500 4326 -174 ☔ View full report in Codecov by Sentry. |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 2.8
git worktree add -d .worktree/backport-5347-to-2.8 origin/2.8
cd .worktree/backport-5347-to-2.8
git switch --create backport-5347-to-2.8
git cherry-pick -x c03c15af98d8beb46512273a3ba9e64ad4058e25 |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 2.6
git worktree add -d .worktree/backport-5347-to-2.6 origin/2.6
cd .worktree/backport-5347-to-2.6
git switch --create backport-5347-to-2.6
git cherry-pick -x c03c15af98d8beb46512273a3ba9e64ad4058e25 |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 2.10
git worktree add -d .worktree/backport-5347-to-2.10 origin/2.10
cd .worktree/backport-5347-to-2.10
git switch --create backport-5347-to-2.10
git cherry-pick -x c03c15af98d8beb46512273a3ba9e64ad4058e25 |
* code cleanup * fix numeric encoding * fix unit-tests * fix flow tests * cleanup * fix type * minor cleanup * some more cleanup * simplify repair flow * review fixes * improve test to include all flags * minor changes and cleanup * added a sanity test (cherry picked from commit c03c15a)
|
Successfully created backport PR for |
Fixes for inverted indexes encoding - [MOD-8248] (#5347) * code cleanup * fix numeric encoding * fix unit-tests * fix flow tests * cleanup * fix type * minor cleanup * some more cleanup * simplify repair flow * review fixes * improve test to include all flags * minor changes and cleanup * added a sanity test (cherry picked from commit c03c15a) Co-authored-by: GuyAv46 <[email protected]>
* code cleanup * fix numeric encoding * fix unit-tests * fix flow tests * cleanup * fix type * minor cleanup * some more cleanup * simplify repair flow * review fixes * improve test to include all flags * minor changes and cleanup * added a sanity test (cherry picked from commit c03c15a)
* code cleanup * fix numeric encoding * fix unit-tests * fix flow tests * cleanup * fix type * minor cleanup * some more cleanup * simplify repair flow * review fixes * improve test to include all flags * minor changes and cleanup * added a sanity test (cherry picked from commit c03c15a)
* code cleanup * fix numeric encoding * fix unit-tests * fix flow tests * cleanup * fix type * minor cleanup * some more cleanup * simplify repair flow * review fixes * improve test to include all flags * minor changes and cleanup * added a sanity test (cherry picked from commit c03c15a)
* code cleanup * fix numeric encoding * fix unit-tests * fix flow tests * cleanup * fix type * minor cleanup * some more cleanup * simplify repair flow * review fixes * improve test to include all flags * minor changes and cleanup * added a sanity test (cherry picked from commit c03c15a)
* Fixes for inverted indexes encoding - [MOD-8248] (#5347) * code cleanup * fix numeric encoding * fix unit-tests * fix flow tests * cleanup * fix type * minor cleanup * some more cleanup * simplify repair flow * review fixes * improve test to include all flags * minor changes and cleanup * added a sanity test (cherry picked from commit c03c15a) * fix test for 2.6 * more fixes for 2.6 * another 2.6 fix * final fixes for 2.6
* Fixes for inverted indexes encoding - [MOD-8248] (#5347) * code cleanup * fix numeric encoding * fix unit-tests * fix flow tests * cleanup * fix type * minor cleanup * some more cleanup * simplify repair flow * review fixes * improve test to include all flags * minor changes and cleanup * added a sanity test (cherry picked from commit c03c15a) * fixes for 2.8 * final fix for 2.8 * build fix for 2.8
* Fixes for inverted indexes encoding - [MOD-8248] (#5347) * code cleanup * fix numeric encoding * fix unit-tests * fix flow tests * cleanup * fix type * minor cleanup * some more cleanup * simplify repair flow * review fixes * improve test to include all flags * minor changes and cleanup * added a sanity test (cherry picked from commit c03c15a) * final fixes for 2.10 * fix test for 2.10
Describe the changes in the pull request
While it was assumed the numeric encoder can encode any
doc_iddiff (while other encoders cannot encode delta >UINT32_MAX), all the encoders got auint32_tdelta, so the numeric encoder will not encode the right delta, causing later unrelated results to be returned.The encoder also cannot encode any delta, but only deltas that fit in 7 bytes, due to the numeric header byte count limitation (counting 0-7 with 3 bits). We now also validate that before attempting to encode the delta, and creating a new block if needed.
Which additional issues this PR fixes
Mark if applicable