Commit 2db9127
[8.19] Backport ES|QL sample agg function (#129627)
* ES|QL SAMPLE aggregation function (#127629)
* ES|QL SAMPLE aggregation function
* [CI] Auto commit changes from spotless
* ThreadLocalRandom -> SplittableRandom
* Update docs/changelog/127629.yaml
* fix yaml test
* Add SampleTests
* docs + example
* polish code
* mark generated imports
* comment with algorith description
* use Randomness.get()
* close properly
* type checks
* reuse hash
* regen some files
* [CI] Auto commit changes from spotless
---------
Co-authored-by: elasticsearchmachine <[email protected]>
* Fix + unmute SampleTests (#127959)
* Fix memory tracking of ES|QL sample agg (#128467)
* Fix memory tracking of ES|QL sample agg
* [CI] Auto commit changes from spotless
* polish code
---------
Co-authored-by: elasticsearchmachine <[email protected]>
* ESQL: Unclean generated imports (#127723)
This removes a ton of the tricky juggling we do for generated java files
to keep the imports in order. Instead, we just live with them being out
of order a little. It's not great, but it's so so so much easier than
the terrible juggling we had been doing.
* ESQL: Disable format checks on generated imports (#127648)
This builds the infrastructure to disable spotless and some checkstyle
rules on generated imports. This works around the most frustrating part
of ESQL's string template generated files - the imports. It allows
unused and out of order imports. This can let us remove a lot of
cumbersome, tricky, and fairly useless `$if$` blocks from the templates.
---------
Co-authored-by: elasticsearchmachine <[email protected]>
Co-authored-by: Nik Everett <[email protected]>1 parent 07dfcde commit 2db9127
File tree
120 files changed
+5095
-61
lines changed- build-tools-internal/src/main/resources
- docs
- changelog
- reference/esql/functions
- description
- examples
- kibana
- definition
- docs
- layout
- parameters
- signature
- types
- server/src/main/java/org/elasticsearch/common/hash
- test/framework/src/main/java/org/elasticsearch/test
- x-pack/plugin
- esql
- compute
- src
- main
- generated-src/org/elasticsearch/compute
- aggregation
- data
- generated/org/elasticsearch/compute/aggregation
- java/org/elasticsearch/compute
- aggregation
- data
- operator/topn
- test/java/org/elasticsearch/compute
- aggregation
- operator
- qa/testFixtures/src/main/resources
- src
- main
- generated-src/org/elasticsearch/xpack/esql/expression
- function/scalar/nulls
- predicate/operator/comparison
- java/org/elasticsearch/xpack/esql
- action
- expression
- function
- aggregate
- scalar/nulls
- predicate/operator/comparison
- test/java/org/elasticsearch/xpack/esql/expression/function/aggregate
- src/yamlRestTest/resources/rest-api-spec/test/esql
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
120 files changed
+5095
-61
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 265 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments