Skip to content

[8.0] Refactor the Numeric Tree to use HyperLogLogs - [MOD-7966, MOD-8116]#5380

Merged
GuyAv46 merged 1 commit into8.0from
backport-5049-to-8.0
Dec 19, 2024
Merged

[8.0] Refactor the Numeric Tree to use HyperLogLogs - [MOD-7966, MOD-8116]#5380
GuyAv46 merged 1 commit into8.0from
backport-5049-to-8.0

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

Description

Backport of #5049 to 8.0.

…5049)

* basic implementation

* fix compilation

* minor changes

* implement split by median

* more cleanup

* implicit element size allocation

* minor cleanups and caching 32 - bits

* use standard API

* revert using stdc API

* added comments

* typo fix

* implement a simple doubles max heap

* gc code cleanup and preparations

* implement GC numeric fix

* simplified implementation

* more cleanup

* more cleanup

* more tidy up

* minor fixes

* tidy up

* tidy up

* minor improvement

* add an assertion

* add caching mechanism to HLL

* minor improvements

* tidy up

* more cleanup and simplifications

* fix tests and cleanup

* remove multiplier from testNumericTree

* implement minimal version of numeric tree debug print

* fix tests

* delete dead code

* remove code duplication

* address review comments

* another test case

* add a failing test

* fix GC logic

* flip ownership over flag

* move some calculations to the child process

* flip condition order

* address review comments and start counting leaves

* tidy up

* review fixes

* minor improvements

* tidy up

* address some review fixes

* address some more review comments

(cherry picked from commit ecb85b7)
@codecov
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 94.53376% with 17 lines in your changes missing coverage. Please review.

Project coverage is 87.05%. Comparing base (4e02900) to head (2274015).
Report is 1 commits behind head on 8.0.

Files with missing lines Patch % Lines
src/fork_gc.c 68.62% 16 Missing ⚠️
src/numeric_index.c 98.91% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              8.0    #5380      +/-   ##
==========================================
+ Coverage   86.62%   87.05%   +0.43%     
==========================================
  Files         195      195              
  Lines       34768    34761       -7     
==========================================
+ Hits        30118    30262     +144     
+ Misses       4650     4499     -151     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@GuyAv46 GuyAv46 added this pull request to the merge queue Dec 19, 2024
Merged via the queue into 8.0 with commit 43483e7 Dec 19, 2024
@GuyAv46 GuyAv46 deleted the backport-5049-to-8.0 branch December 19, 2024 12:59
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.

1 participant