-
Notifications
You must be signed in to change notification settings - Fork 329
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!: fix regression caused by unbalanced partitions and splitting ranges #5090
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Since memtable won't do dedup jobs This reverts commit 2fc7a54.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 19 out of 19 changed files in this pull request and generated no suggestions.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5090 +/- ##
==========================================
- Coverage 84.03% 83.79% -0.24%
==========================================
Files 1162 1167 +5
Lines 216767 217534 +767
==========================================
+ Hits 182153 182292 +139
- Misses 34614 35242 +628 |
ae6f2fe
to
3066f55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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?
As mentioned in #5052 (comment), the
SeqScan
will push all row groups into theRangeMeta
when building theStreamContext
.greptimedb/src/mito2/src/read/range.rs
Lines 258 to 280 in 8bdef77
Then
SeqScan
builds a source for each row group index. This causes the merge reader to load all row groups of each file inbuild_sources()
by iterating therow_group_indices
.greptimedb/src/mito2/src/read/seq_scan.rs
Lines 368 to 379 in 8bdef77
This PR fixes several issues in SeqScan related to #5052
SourceIndex
so we can know how to split the source without relying on theFileMeta
.target_partitions
partitions so the query engine can repartition inputs.After this PR, we store the row group number in
SourceIndex
so we can always set the row group index toALL_ROW_GROUPS
when building theStreamContext
. Thenbuild_sources()
will read a source for the whole file instead of a list of sources for all row groups.Checklist