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

fix(flow): Arrange get range with batch unaligned #3552

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

discord9
Copy link
Contributor

@discord9 discord9 commented Mar 20, 2024

I hereby agree to the terms of the GreptimeDB CLA.

Refer to a related PR or issue link (optional)

What's changed and what's your intention?

Fix arrangement's batches's interaction with get by range unaligned with batch boundaries. Related tests are added and commented in details.

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.

@github-actions github-actions bot added the docs-not-required This change does not impact docs. label Mar 20, 2024
@discord9 discord9 requested a review from zhongzc March 20, 2024 09:55
@discord9 discord9 marked this pull request as ready for review March 20, 2024 09:55
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 97.14286% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 85.00%. Comparing base (39b69f1) to head (d47f4e4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3552      +/-   ##
==========================================
- Coverage   85.37%   85.00%   -0.37%     
==========================================
  Files         910      910              
  Lines      152034   152225     +191     
==========================================
- Hits       129792   129399     -393     
- Misses      22242    22826     +584     

src/flow/src/utils.rs Outdated Show resolved Hide resolved
src/flow/src/utils.rs Outdated Show resolved Hide resolved
@zhongzc
Copy link
Contributor

zhongzc commented Mar 20, 2024

rest LGTM

Copy link
Contributor

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

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

LGTM

@killme2008 killme2008 added this pull request to the merge queue Mar 22, 2024
Merged via the queue into GreptimeTeam:main with commit 9f020aa Mar 22, 2024
18 checks passed
Comment on lines +28 to +29
pub type Batch = BTreeMap<Row, SmallVec<[DiffRow; 2]>>;
pub type Spine = BTreeMap<Timestamp, Batch>;
Copy link
Member

Choose a reason for hiding this comment

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

👍

Maybe also move/duplicate some document to those alias

Comment on lines +201 to +203
} else {
continue;
}
Copy link
Member

Choose a reason for hiding this comment

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

nit: unnecessary continue?

Suggested change
} else {
continue;
}
}

@waynexia
Copy link
Member

Forget to send them...

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.

4 participants