Fix incorrect results returned by min, max and avg#145
Merged
Yury-Fridlyand merged 4 commits intointeg-fix-aggreg-on-nullsfrom Nov 1, 2022
Merged
Fix incorrect results returned by min, max and avg#145Yury-Fridlyand merged 4 commits intointeg-fix-aggreg-on-nullsfrom
min, max and avg#145Yury-Fridlyand merged 4 commits intointeg-fix-aggreg-on-nullsfrom
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>
This comment was marked as abuse.
This comment was marked as abuse.
acarbonetto
reviewed
Oct 27, 2022
| "format": "yyyy-MM-dd" | ||
| }, | ||
| "time" : { | ||
| "type" : "date", |
|
What the MySQL result for sum(null)? Is it supposed to be null or zero? |
acarbonetto
approved these changes
Oct 27, 2022
| @@ -0,0 +1,18 @@ | |||
| {"index":{}} | |||
There was a problem hiding this comment.
you don't want to give these index numbers?
Author
There was a problem hiding this comment.
They are assigned automatically if not given.
| {"index":{}} | ||
| {"key" : "values", "int" : 42, "dbl" : 3.1415, "bool" : true, "str" : "pewpew", "date" : "1984-05-22", "time" : "22:13:37", "datetime" : "1984-05-22 22:13:37", "timestamp" : "2000-01-02 03:04:05" } | ||
| {"index":{}} | ||
| {"key" : "missing"} |
Author
There was a problem hiding this comment.
key is not a PK. Just a column.
| {"index":{}} | ||
| {"key" : "missing"} | ||
| {"index":{}} | ||
| {"key" : "null", "int" : null, "dbl" : null, "bool" : null, "str" : null, "date" : null, "time" : null, "datetime" : null, "timestamp" : null} |
There was a problem hiding this comment.
is "key": "null" also not confusing?
Author
|
6 tasks
GumpacG
approved these changes
Oct 27, 2022
forestmvey
approved these changes
Oct 27, 2022
Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix incorrect results returned by
min,maxandavgwhen processing null/missing values only.Signed-off-by: Yury-Fridlyand yuryf@bitquilltech.com
Description
Before
After
Fixed:
minmaxavgNot fixed:
sumThis requires much more changes.
Not affected
var_sampvar_popstddev_sampstddev_popIssues Resolved
opensearch-project#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.