-
Notifications
You must be signed in to change notification settings - Fork 25.7k
ESQL - Tdigest data type #139151
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
Merged
+225
−34
Merged
ESQL - Tdigest data type #139151
Changes from 17 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
915a4ce
add the new data type
not-napoleon fac3a49
match values in CSV test
not-napoleon d5c6a8b
fix Query Response Tests
not-napoleon 1b6c3a2
ignore some tests I don't expect to be supported yet
not-napoleon 975d727
make TDigestHolder writeable. Required for ShowExecSerializationTests
not-napoleon bfe28e8
transport version? I assume?
not-napoleon 5fd101f
spotless apply
not-napoleon af9d854
[CI] Auto commit changes from spotless
7f2111d
Merge remote-tracking branch 'refs/remotes/not-napoleon/tdigest-data-…
not-napoleon 18ea5c7
Merge branch 'main' into tdigest-data-type
not-napoleon 4251c6b
update capability name
not-napoleon a0e679a
[CI] Auto commit changes from spotless
8864285
Merge branch 'main' into tdigest-data-type
not-napoleon f4bc63a
transport version? I assume?
not-napoleon 9f25ded
Merge remote-tracking branch 'refs/remotes/not-napoleon/tdigest-data-…
not-napoleon f91bf9e
fix bad merge
not-napoleon f89d1b2
[CI] Auto commit changes from spotless
373a4e3
skip CCQ BWC Tests, hopefully
not-napoleon 740882c
ignore tdigest from suggested cast tests
not-napoleon fed56b6
Merge remote-tracking branch 'refs/remotes/not-napoleon/tdigest-data-…
not-napoleon 57a33b7
Merge branch 'main' into tdigest-data-type
not-napoleon ed91eba
[CI] Auto commit changes from spotless
72f3157
response to PR feedback
not-napoleon 3125a22
Mark TDigest type as not supported for joins
not-napoleon 577406f
Merge remote-tracking branch 'refs/remotes/not-napoleon/tdigest-data-…
not-napoleon 82837e8
One more spot
not-napoleon 3090313
Merge branch 'main' into tdigest-data-type
not-napoleon b72eb65
Merge branch 'main' into tdigest-data-type
not-napoleon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
server/src/main/resources/transport/definitions/referable/esql_serializeable_tdigest.csv
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 9236000 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| inference_ccm_enablement_service,9235000 | ||
| esql_serializeable_tdigest,9236000 |
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
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
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
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
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
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
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
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
9 changes: 4 additions & 5 deletions
9
x-pack/plugin/esql/qa/testFixtures/src/main/resources/tdigest.csv-spec
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| Make sure we can even load tdigest data | ||
| required_capability: tdigest_field_type_basic_functionality | ||
| required_capability: tdigest_field_type_support_v1 | ||
|
|
||
| FROM tdigest_standard_index | KEEP @timestamp,instance; | ||
|
|
||
| @timestamp:date | instance:keyword | ||
| 2025-01-01T00:00:00Z | hand-rolled | ||
| FROM tdigest_standard_index ; | ||
|
|
||
| @timestamp:date | instance:keyword | responseTime:tdigest | ||
| 2025-01-01T00:00:00Z | hand-rolled | "{""min"": 0.1, ""max"": 0.5, ""sum"": 16.4, ""centroids"":[0.1,0.2,0.3,0.4,0.5], ""counts"":[3,7,23,12,6]}" | ||
| ; |
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
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
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
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
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
Oops, something went wrong.
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.
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.
We usually place readFrom and writeTo next to each other so they can be easily scanned and compared.