feat: support configuring distinct count agg function#143
feat: support configuring distinct count agg function#143aaron-steinfeld merged 4 commits intomainfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## main #143 +/- ##
============================================
- Coverage 82.16% 82.13% -0.03%
- Complexity 627 633 +6
============================================
Files 65 66 +1
Lines 2377 2385 +8
Branches 242 244 +2
============================================
+ Hits 1953 1959 +6
- Misses 326 329 +3
+ Partials 98 97 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Verified this is broken on main, independent of this PR.This is why reproducible tests are good :( https://github.com/hypertrace/query-service/runs/7032109114?check_suite_focus=true Guessing the integration tests are not set up to support the current version of pinot, will see if I can poke some things. |
|
Confirmed, introduced by https://github.com/hypertrace/pinot/releases/tag/0.5.0 . Pinning to the previous tag completes successfully. |
|
|
||
| assertEquals( | ||
| "SUM(DIV(foo, 2.0))", | ||
| "SUM(foo / 2.0)", |
There was a problem hiding this comment.
Just curious: Do we have any value level test that compares prior (SUM(DIV(foo, 2.0)) vs SUM(foo / 2.0, resulting in the same values?
There was a problem hiding this comment.
That would be testing pinot's functionality - that DIV and / both actually... divide. Not sure it's worth writing a test, but we can verify by hand real quick.
So, are you pinning to the previous tag |
|
It can’t find that |
| private static final String DISTINCT_COUNT_AGGREGATION_FUNCTION_CONFIG = | ||
| "distinctCountAggFunction"; | ||
| private static final String DEFAULT_PERCENTILE_AGGREGATION_FUNCTION = "PERCENTILETDIGEST"; | ||
| private static final String DEFAULT_DISTINCT_COUNT_AGGREGATION_FUNCTION = "DISTINCTCOUNT"; |
There was a problem hiding this comment.
I think we should make DISTINCT_COUNT_HLL as the default.
There was a problem hiding this comment.
I left it this way for backwards compatibility. Without any custom config it'll retain identical behavior as before, but it's easily changed.
…#146) * fix: the integration test with latest pinot image for group.id change * making it 5 mins for worst case * updated comments * reverted the test image
This comment has been minimized.
This comment has been minimized.
* feat: support configuring distinct count agg function * fix: restore missing sum * fix: the integration test with latest pinot image for group.id change (hypertrace#146) * fix: the integration test with latest pinot image for group.id change * making it 5 mins for worst case * updated comments * reverted the test image * refactor: update a test config, remove unused const Co-authored-by: kotharironak <53209990+kotharironak@users.noreply.github.com>
* feat: support configuring distinct count agg function (hypertrace#143) * feat: support configuring distinct count agg function * fix: restore missing sum * fix: the integration test with latest pinot image for group.id change (hypertrace#146) * fix: the integration test with latest pinot image for group.id change * making it 5 mins for worst case * updated comments * reverted the test image * refactor: update a test config, remove unused const Co-authored-by: kotharironak <53209990+kotharironak@users.noreply.github.com> * adding config from service since kube manifest plans fail * fix: flip around division (hypertrace#147) * kube manifests isnt working so adding service config * removed config changes at app level * add dependency * add dependency * dependency udpate * dependency update * build from apm * maven aurl * maven test * dependency update * file impl * file impl * updates workflows Co-authored-by: Aaron Steinfeld <45047841+aaron-steinfeld@users.noreply.github.com> Co-authored-by: kotharironak <53209990+kotharironak@users.noreply.github.com> Co-authored-by: 13shivam <shivam.rai@razorpay.com>
* feat: support configuring distinct count agg function (hypertrace#143) * feat: support configuring distinct count agg function * fix: restore missing sum * fix: the integration test with latest pinot image for group.id change (hypertrace#146) * fix: the integration test with latest pinot image for group.id change * making it 5 mins for worst case * updated comments * reverted the test image * refactor: update a test config, remove unused const Co-authored-by: kotharironak <53209990+kotharironak@users.noreply.github.com> * adding config from service since kube manifest plans fail * fix: flip around division (hypertrace#147) * kube manifests isnt working so adding service config * removed config changes at app level Co-authored-by: Aaron Steinfeld <45047841+aaron-steinfeld@users.noreply.github.com> Co-authored-by: kotharironak <53209990+kotharironak@users.noreply.github.com>



Description
/operator rather than the existingDIV(). This is better optimized by Pinot.Testing
Ran and updated unit tests
Checklist: