-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
add SegmentContext to collect validDocIds bitmaps for many segments together #12694
add SegmentContext to collect validDocIds bitmaps for many segments together #12694
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12694 +/- ##
============================================
+ Coverage 61.75% 62.04% +0.28%
+ Complexity 207 198 -9
============================================
Files 2436 2464 +28
Lines 133233 134762 +1529
Branches 20636 20813 +177
============================================
+ Hits 82274 83607 +1333
- Misses 44911 45002 +91
- Partials 6048 6153 +105
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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!
Thanks for refactoring!
pinot-core/src/main/java/org/apache/pinot/core/query/executor/ServerQueryExecutorV1Impl.java
Show resolved
Hide resolved
...main/java/org/apache/pinot/segment/local/upsert/ConcurrentMapTableUpsertMetadataManager.java
Outdated
Show resolved
Hide resolved
2f92034
to
080a453
Compare
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/SegmentContext.java
Outdated
Show resolved
Hide resolved
...nt-local/src/main/java/org/apache/pinot/segment/local/upsert/TableUpsertMetadataManager.java
Outdated
Show resolved
Hide resolved
6926891
to
a353b11
Compare
This PR adds SegmentContext used to collect segment related context before query execution. E.g. this makes it easier to collect validDocIds for many segments together, so that we can add the support for consistent table view for upsert table easier later on.
This PR didn't change current functionalities but moved the logic of getting validDocId bitmaps upto one place, i.e.
tableDataMgr.getSegmentContexts(selectedSegments)
.