Skip to content
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

[Backport 2.4] Fix incorrect results returned by min, max and avg #1022

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 4282450 from #1000

* Fix incorrect results returned by `min`, `max` and `avg` aggregations on null/missing values.

Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>

* Fix indentation.

Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>

* Activate and fix integration tests.

Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>

* Add more tests.

Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>

Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
(cherry picked from commit 4282450)
@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team as a code owner November 3, 2022 20:30
@codecov-commenter
Copy link

Codecov Report

Merging #1022 (135f946) into 2.4 (59202f1) will decrease coverage by 2.57%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                2.4    #1022      +/-   ##
============================================
- Coverage     98.26%   95.68%   -2.58%     
- Complexity     3325     3326       +1     
============================================
  Files           324      334      +10     
  Lines          8399     9057     +658     
  Branches        553      672     +119     
============================================
+ Hits           8253     8666     +413     
- Misses          142      334     +192     
- Partials          4       57      +53     
Flag Coverage Δ
query-workbench 62.76% <ø> (?)
sql-engine 98.26% <100.00%> (ø)

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

Impacted Files Coverage Δ
...sql/opensearch/response/agg/SingleValueParser.java 100.00% <100.00%> (ø)
...earch/sql/opensearch/response/agg/StatsParser.java 100.00% <100.00%> (ø)
.../opensearch/sql/opensearch/response/agg/Utils.java 100.00% <100.00%> (ø)
...h/public/components/QueryLanguageSwitch/Switch.tsx 85.71% <0.00%> (ø)
workbench/public/components/Header/Header.tsx 100.00% <0.00%> (ø)
workbench/public/components/SQLPage/SQLPage.tsx 100.00% <0.00%> (ø)
...ublic/components/QueryResults/QueryResultsBody.tsx 68.32% <0.00%> (ø)
workbench/public/utils/PanelWrapper.tsx 100.00% <0.00%> (ø)
...ch/public/components/QueryResults/QueryResults.tsx 61.60% <0.00%> (ø)
workbench/public/components/PPLPage/PPLPage.tsx 56.52% <0.00%> (ø)
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@dai-chen dai-chen merged commit 3168ed5 into 2.4 Nov 3, 2022
@github-actions github-actions bot deleted the backport/backport-1000-to-2.4 branch November 3, 2022 22:01
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.

None yet

3 participants