Skip to content

Test OfflineClusterIntegrationTest.testDistinctCountHll in both engines#11427

Open
gortiz wants to merge 1 commit intoapache:masterfrom
gortiz:multiStageHllBug
Open

Test OfflineClusterIntegrationTest.testDistinctCountHll in both engines#11427
gortiz wants to merge 1 commit intoapache:masterfrom
gortiz:multiStageHllBug

Conversation

@gortiz
Copy link
Contributor

@gortiz gortiz commented Aug 24, 2023

This PR executes OfflineClusterIntegrationTest.testDistinctCountHll in both single and multi stage query engine.

While doing that, I found that V1 and V2 returned different values when the default log2m was used. The reason was that while V1 picked the default value from default.hyperloglog.log2m config, V2 was using the default value without reading that config. And the reason for that is that the implementation in V1 does a rewrite in the broker. While V2 doesn't have anything like that.

Ideally we should change the implementation of all different HLL operations in order to correctly use the value specified in the configuration. But I assume V1 doesn't do that for some reason (probably because operation implementation is static and cannot read the configuration). Therefore I decided to follow the same approach in V2 and do a rewrite.

In order to do so, I created a calcite RelRule.

@codecov-commenter
Copy link

codecov-commenter commented Aug 24, 2023

Codecov Report

Merging #11427 (372c3ba) into master (5bee13a) will decrease coverage by 48.50%.
Report is 1 commits behind head on master.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             master   #11427       +/-   ##
=============================================
- Coverage     62.93%   14.43%   -48.50%     
+ Complexity     1111      201      -910     
=============================================
  Files          2318     2318               
  Lines        124328   124321        -7     
  Branches      18980    18980               
=============================================
- Hits          78241    17944    -60297     
- Misses        40533   104862    +64329     
+ Partials       5554     1515     -4039     
Flag Coverage Δ
integration 0.00% <0.00%> (-0.01%) ⬇️
integration1 ?
integration2 0.00% <0.00%> (ø)
java-11 0.00% <0.00%> (-62.92%) ⬇️
java-17 14.43% <0.00%> (-48.36%) ⬇️
java-20 14.43% <0.00%> (-48.37%) ⬇️
temurin 14.43% <0.00%> (-48.50%) ⬇️
unittests 14.43% <0.00%> (-48.50%) ⬇️
unittests1 ?
unittests2 14.43% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...requesthandler/MultiStageBrokerRequestHandler.java 24.21% <ø> (ø)
...t/controller/api/resources/PinotQueryResource.java 0.00% <0.00%> (ø)
.../java/org/apache/pinot/query/QueryEnvironment.java 0.00% <0.00%> (-90.60%) ⬇️

... and 1496 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants