-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Adds support for filters to T-Test aggregation. The filters can be used to select populations based on some criteria and use values from the same or different fields. Closes #53692
- 7.10
- (#55066)
- 7.11
- (#55066)
- 7.12
- (#55066)
- 7.13
- (#55066)
- 7.14
- (#55066)
- 7.15
- (#55066)
- 7.16
- (#55066)
- 7.17
- (#55066)
- 7.17-ci-pipelines-add-ubuntu-2404
- (#55066)
- 7.8
- (#55066)
- 7.9
- (#55066)
- AndyHunt66-patch-1
- (#55066)
- Leaf-Lin-patch-2
- (#55066)
- TheRiffRafi-patch-1
- (#55066)
- add-linux-aarch64-to-bwc-setup-plugin-7.x
- (#55066)
- albertzaharovits-doc-dls-fls-remote-index-permitted
- (#55066)
- backport/7.17/pr-116172
- (#55066)
- backport/undo_transient_settings
- (#55066)
- build-bwc-without-es-runtime-7x
- (#55066)
- buildkite-migration-717
- (#55066)
- crisdarocha-patch-1
- (#55066)
- fix-indenting-code-block
- (#55066)
- geekpete-patch-1
- (#55066)
- ignore-older-version-bwc-tests-with-aarch64-7.x
- (#55066)
- jeanfabrice-docpatch-1
- (#55066)
- kilfoyle-patch-1
- (#55066)
- kilfoyle-remove-frozen-tier-warning
- (#55066)
- nathandh22-patch-1
- (#88967, #55066)
- ppf2-aggregations-ccs-leak-7.15.0
- (#55066)
- release-notes-7-17-20
- (#55066)
- release-notes-7-17-27
- (#120013, #55066)
- rseldner-patch-1
- (#55066)
- rseldner-patch-1-1
- (#55066)
- rseldner-patch-1-2
- (#55066)
- toby-sutor-patch-2
- (#55066)
Showing
14 changed files
with
510 additions
and
83 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
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
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
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
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
72 changes: 72 additions & 0 deletions
72
x-pack/plugin/src/test/resources/rest-api-spec/test/analytics/t_test.yml
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,72 @@ | ||
--- | ||
setup: | ||
- do: | ||
bulk: | ||
index: test | ||
refresh: true | ||
body: | ||
- '{"index": {}}' | ||
- '{"v1": 15.2, "v2": 15.9, "str": "a"}' | ||
- '{"index": {}}' | ||
- '{"v1": 15.3, "v2": 15.9, "str": "a"}' | ||
- '{"index": {}}' | ||
- '{"v1": 16.0, "v2": 15.2, "str": "b"}' | ||
- '{"index": {}}' | ||
- '{"v1": 15.1, "v2": 15.5, "str": "b"}' | ||
--- | ||
"heteroscedastic t-test": | ||
- do: | ||
search: | ||
size: 0 | ||
index: "test" | ||
body: | ||
aggs: | ||
ttest: | ||
t_test: | ||
a: | ||
field: v1 | ||
b: | ||
field: v2 | ||
- match: { aggregations.ttest.value: 0.43066659210472646 } | ||
|
||
--- | ||
"paired t-test": | ||
- do: | ||
search: | ||
size: 0 | ||
index: "test" | ||
body: | ||
aggs: | ||
ttest: | ||
t_test: | ||
a: | ||
field: v1 | ||
b: | ||
field: v2 | ||
type: paired | ||
|
||
- match: { aggregations.ttest.value: 0.5632529432617406 } | ||
|
||
--- | ||
"homoscedastic t-test with filters": | ||
- do: | ||
search: | ||
size: 0 | ||
index: "test" | ||
body: | ||
aggs: | ||
ttest: | ||
t_test: | ||
a: | ||
field: v1 | ||
filter: | ||
term: | ||
str.keyword: a | ||
b: | ||
field: v1 | ||
filter: | ||
term: | ||
str.keyword: b | ||
type: homoscedastic | ||
|
||
- match: { aggregations.ttest.value: 0.5757355806262943 } |