-
Notifications
You must be signed in to change notification settings - Fork 141
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
Fix incorrect results returned by min
, max
and avg
#1000
Fix incorrect results returned by min
, max
and avg
#1000
Conversation
… on null/missing values. Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
Fix incorrect results returned by `min`, `max` and `avg`
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #1000 +/- ##
============================================
- Coverage 97.95% 97.60% -0.35%
- Complexity 3137 3186 +49
============================================
Files 303 308 +5
Lines 7783 7983 +200
Branches 501 520 +19
============================================
+ Hits 7624 7792 +168
- Misses 158 190 +32
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Thanks.
The CodeQL is failing and seems caused by some regular expression in GrokUtils. I assume it's introduced by other PR earlier? https://github.com/opensearch-project/sql/pull/1000/checks?check_run_id=9215922956 |
|
I see. Not sure why it doesn't fail on all other PRs. Btw, to follow the same procedure, should we choose 2.x branch as target and label with |
The base branch was changed.
Done. Please, re-review. |
Looks good. Thanks! |
* 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)
* 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) Co-authored-by: Yury-Fridlyand <yuryf@bitquilltech.com>
Fix incorrect results returned by
min
,max
andavg
when processing null/missing values only.Signed-off-by: Yury-Fridlyand yuryf@bitquilltech.com
See team review & discussion in Bit-Quill#145
Description
Before
After
Fixed:
min
max
avg
Not fixed:
sum
This requires much more changes.
Not affected
var_samp
var_pop
stddev_samp
stddev_pop
Issues Resolved
Fixes #817
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.