Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replace pk index with pk_weight during freeze #3343

Merged
merged 4 commits into from Feb 21, 2024

Conversation

v0y4g3r
Copy link
Contributor

@v0y4g3r v0y4g3r commented Feb 21, 2024

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Impl DataBuffer::freeze method, which sorts rows in DataBuffer according to pk weights and replaces pk_index values with pk_weights directly.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR does not require documentation updates.

Refer to a related PR or issue link (optional)

@github-actions github-actions bot added the docs-not-required This change does not impact docs. label Feb 21, 2024
@v0y4g3r v0y4g3r marked this pull request as ready for review February 21, 2024 06:12
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (41656c8) 85.28% compared to head (1c481e2) 84.89%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3343      +/-   ##
==========================================
- Coverage   85.28%   84.89%   -0.39%     
==========================================
  Files         884      884              
  Lines      144256   144265       +9     
==========================================
- Hits       123028   122480     -548     
- Misses      21228    21785     +557     

@v0y4g3r v0y4g3r force-pushed the feat/merge-tree-data-buffer-freeze branch from ac56c1f to 01e6cb9 Compare February 21, 2024 06:40
Copy link
Collaborator

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

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

LGTM

@v0y4g3r v0y4g3r added this pull request to the merge queue Feb 21, 2024
Merged via the queue into GreptimeTeam:main with commit 86a98c8 Feb 21, 2024
17 checks passed
@v0y4g3r v0y4g3r deleted the feat/merge-tree-data-buffer-freeze branch February 21, 2024 08:18
MichaelScofield pushed a commit to MichaelScofield/greptimedb that referenced this pull request Feb 21, 2024
* feat: replace pk index with pk_weight during freeze

* chore: add parameter to control pk_index replacement

* fix: dedup pk weights also

* fix: generate pk array before dedup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required This change does not impact docs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants