-
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
Enable range index on raw columns and push counts down to range index when v2 is in use #8513
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8513 +/- ##
============================================
- Coverage 70.59% 69.34% -1.25%
- Complexity 4227 4292 +65
============================================
Files 1674 1675 +1
Lines 87618 87664 +46
Branches 13272 13279 +7
============================================
- Hits 61852 60792 -1060
- Misses 21477 22607 +1130
+ Partials 4289 4265 -24
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
49fed85
to
c2a457a
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.
looks good to me overall. I just have 2 questions. please kindly take a look
...-core/src/main/java/org/apache/pinot/core/operator/filter/RangeIndexBasedFilterOperator.java
Outdated
Show resolved
Hide resolved
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/reader/RangeIndexReader.java
Show resolved
Hide resolved
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 otherwise. There is a major comment on a copy-pasted bug
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/reader/RangeIndexReader.java
Show resolved
Hide resolved
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/reader/RangeIndexReader.java
Outdated
Show resolved
Hide resolved
...est/java/org/apache/pinot/segment/local/segment/index/creator/BitSlicedIndexCreatorTest.java
Show resolved
Hide resolved
...-core/src/main/java/org/apache/pinot/core/operator/filter/RangeIndexBasedFilterOperator.java
Outdated
Show resolved
Hide resolved
...-core/src/main/java/org/apache/pinot/core/operator/filter/RangeIndexBasedFilterOperator.java
Outdated
Show resolved
Hide resolved
c2a457a
to
f30099e
Compare
@Jackie-Jiang the copy-paste bug you spotted was revealing - range indexes over raw columns was not actually supported, despite #5853 aiming to add support. Commit fe28919 addresses that. Commit f30099e addresses your review comments, and adds a test to verify the bug is fixed (and that the code executes). |
This extends the fast count mechanism to v2 range indexes now that the underlying data structure supports counting. Also does some code cleanup in this area.