forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix moving function linear weighted avg (elastic#118516) (elastic#118751
) Fix moving function linear weighted avg Co-authored-by: Quentin Deschamps <[email protected]>
- Loading branch information
Showing
6 changed files
with
35 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 118435 | ||
summary: Fix moving function linear weighted avg | ||
area: Aggregations | ||
type: bug | ||
issues: | ||
- 113751 |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,6 +255,17 @@ linearWeightedAvg: | |
- skip: | ||
features: close_to | ||
|
||
- requires: | ||
test_runner_features: [capabilities] | ||
|
||
- requires: | ||
capabilities: | ||
- method: POST | ||
path: /_search | ||
parameters: [method, path, parameters, capabilities] | ||
capabilities: [moving_fn_right_math] | ||
reason: "math not fixed yet" | ||
|
||
- do: | ||
search: | ||
index: no_gaps | ||
|
@@ -275,11 +286,11 @@ linearWeightedAvg: | |
- match: { hits.total.value: 6 } | ||
- length: { [email protected]: 6 } | ||
- is_false: [email protected] | ||
- close_to: { [email protected]: { value: 0.500, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 1.250, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 1.000, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 2.250, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 3.500, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 1.000, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 1.667, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 1.333, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 3.000, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 4.667, error: 0.0005 } } | ||
|
||
- do: | ||
search: | ||
|
@@ -301,11 +312,11 @@ linearWeightedAvg: | |
- match: { hits.total.value: 6 } | ||
- length: { [email protected]: 6 } | ||
- is_false: [email protected] | ||
- close_to: { [email protected]: { value: 0.500, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 1.250, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 1.143, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 2.286, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 3.429, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 1.000, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 1.667, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 1.333, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 2.667, error: 0.0005 } } | ||
- close_to: { [email protected]: { value: 4.000, error: 0.0005 } } | ||
|
||
--- | ||
ewma: | ||
|
This file contains 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
This file contains 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
This file contains 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