Add option to skip statree index evaluation during query#8737
Add option to skip statree index evaluation during query#8737KKcorps merged 4 commits intoapache:masterfrom
Conversation
pinot-spi/src/main/java/org/apache/pinot/spi/utils/CommonConstants.java
Outdated
Show resolved
Hide resolved
pinot-core/src/main/java/org/apache/pinot/core/startree/StarTreeUtils.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #8737 +/- ##
==========================================
Coverage 69.67% 69.68%
- Complexity 4612 4619 +7
==========================================
Files 1730 1732 +2
Lines 90312 90741 +429
Branches 13421 13508 +87
==========================================
+ Hits 62928 63230 +302
- Misses 23015 23108 +93
- Partials 4369 4403 +34
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Jackie-Jiang
left a comment
There was a problem hiding this comment.
After some thoughts, I think it might be better to just keep using the current key (useStarTree) in the debug option, and allow it to be configured within the query option as well for the following benefits:
- Easier migration: user doesn't need to remember to use different key in debug option vs query option
- Currently we always use star-tree when applicable, but in the future we might automatically choose to use/not use star-tree based on the query, and user can use
useStarTree=trueto force using star-tree - We can consider deprecating the debug option and treat all debug option as query option for backward compatibility. Keeping the same key can make this much easier, and users who already use debug option do not need to make any change
|
Done. I have kept the methods name the existing one though i.e. |
f5b7946 to
3329ec2
Compare
Jackie-Jiang
left a comment
There was a problem hiding this comment.
LGTM. Only minor non-blocking comments
Currently, there are some cases where Startree index might not work properly (such as using aggregation with OR filters). For such cases, we can have the option in query itself to skip startree index.
You can set
option(useStarTree=false)to skip starTree index.