Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into dense_vector_stats_…
Browse files Browse the repository at this point in the history
…primaries
  • Loading branch information
jimczi committed Apr 30, 2024
2 parents 4b040a6 + a2d9cc6 commit 0beb630
Show file tree
Hide file tree
Showing 476 changed files with 5,895 additions and 2,012 deletions.
8 changes: 8 additions & 0 deletions .buildkite/pipelines/intake.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ steps:
image: family/elasticsearch-ubuntu-2004
machineType: n1-standard-32
buildDirectory: /dev/shm/bk
- label: part5
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart5
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: n1-standard-32
buildDirectory: /dev/shm/bk
- group: bwc-snapshots
steps:
- label: "{{matrix.BWC_VERSION}} / bwc-snapshots"
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/pipelines/intake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ steps:
image: family/elasticsearch-ubuntu-2004
machineType: n1-standard-32
buildDirectory: /dev/shm/bk
- label: part5
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart5
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: n1-standard-32
buildDirectory: /dev/shm/bk
- group: bwc-snapshots
steps:
- label: "{{matrix.BWC_VERSION}} / bwc-snapshots"
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/pipelines/lucene-snapshot/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ steps:
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
- label: part5
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-task-input-files checkPart5
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
- group: bwc-snapshots
steps:
- label: "{{matrix.BWC_VERSION}} / bwc-snapshots"
Expand Down
2 changes: 2 additions & 0 deletions .buildkite/pipelines/periodic-platform-support.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ steps:
- checkPart2
- checkPart3
- checkPart4
- checkPart5
- checkRestCompat
agents:
provider: gcp
Expand All @@ -72,6 +73,7 @@ steps:
- checkPart2
- checkPart3
- checkPart4
- checkPart5
- checkRestCompat
agents:
provider: aws
Expand Down
2 changes: 2 additions & 0 deletions .buildkite/pipelines/periodic.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ steps:
- checkPart2
- checkPart3
- checkPart4
- checkPart5
- checkRestCompat
agents:
provider: gcp
Expand Down Expand Up @@ -92,6 +93,7 @@ steps:
- checkPart2
- checkPart3
- checkPart4
- checkPart5
- checkRestCompat
agents:
provider: gcp
Expand Down
2 changes: 2 additions & 0 deletions .buildkite/pipelines/periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ steps:
- checkPart2
- checkPart3
- checkPart4
- checkPart5
- checkRestCompat
agents:
provider: gcp
Expand Down Expand Up @@ -433,6 +434,7 @@ steps:
- checkPart2
- checkPart3
- checkPart4
- checkPart5
- checkRestCompat
agents:
provider: gcp
Expand Down
13 changes: 13 additions & 0 deletions .buildkite/pipelines/pull-request/part-5-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
config:
allow-labels: "test-arm"
steps:
- label: part-5-arm
command: .ci/scripts/run-gradle.sh -Dignore.tests.seed checkPart5
timeout_in_minutes: 300
agents:
provider: aws
imagePrefix: elasticsearch-ubuntu-2004-aarch64
instanceType: m6g.8xlarge
diskSizeGb: 350
diskType: gp3
diskName: /dev/sda1
11 changes: 11 additions & 0 deletions .buildkite/pipelines/pull-request/part-5-fips.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
config:
allow-labels: "Team:Security"
steps:
- label: part-5-fips
command: .ci/scripts/run-gradle.sh -Dignore.tests.seed -Dtests.fips.enabled=true checkPart5
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
14 changes: 14 additions & 0 deletions .buildkite/pipelines/pull-request/part-5-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
config:
allow-labels: "test-windows"
steps:
- label: part-5-windows
command: .\.buildkite\scripts\run-script.ps1 bash .buildkite/scripts/windows-run-gradle.sh
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-windows-2022
machineType: custom-32-98304
diskType: pd-ssd
diskSizeGb: 350
env:
GRADLE_TASK: checkPart5
11 changes: 11 additions & 0 deletions .buildkite/pipelines/pull-request/part-5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
config:
skip-target-branches: "7.17"
steps:
- label: part-5
command: .ci/scripts/run-gradle.sh -Dignore.tests.seed checkPart5
timeout_in_minutes: 300
agents:
provider: gcp
image: family/elasticsearch-ubuntu-2004
machineType: custom-32-98304
buildDirectory: /dev/shm/bk
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ allprojects {
tasks.register('checkPart4') { dependsOn 'check' }
} else if (project.path == ":x-pack:plugin" || project.path.contains("ql") || project.path.contains("smoke-test")) {
tasks.register('checkPart3') { dependsOn 'check' }
} else if (project.path.contains("multi-node")) {
tasks.register('checkPart5') { dependsOn 'check' }
} else {
tasks.register('checkPart2') { dependsOn 'check' }
}
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog/101373.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 101373
summary: Adding aggregations support for the `_ignored` field
area: Search
type: feature
issues:
- 59946
18 changes: 18 additions & 0 deletions docs/changelog/105792.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pr: 105792
summary: "Change `skip_unavailable` remote cluster setting default value to true"
area: Search
type: breaking
issues: []
breaking:
title: "Change `skip_unavailable` remote cluster setting default value to true"
area: Cluster and node setting
details: The default value of the `skip_unavailable` setting is now set to true.
All existing and future remote clusters that do not define this setting will use the new default.
This setting only affects cross-cluster searches using the _search or _async_search API.
impact: Unavailable remote clusters in a cross-cluster search will no longer cause the search to fail unless
skip_unavailable is configured to be `false` in elasticsearch.yml or via the `_cluster/settings` API.
Unavailable clusters with `skip_unavailable`=`true` (either explicitly or by using the new default) are marked
as SKIPPED in the search response metadata section and do not fail the entire search. If users want to ensure that a
search returns a failure when a particular remote cluster is not available, `skip_unavailable` must be now be
set explicitly.
notable: false
5 changes: 5 additions & 0 deletions docs/changelog/107481.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 107481
summary: Block specific config files from being read after startup
area: Security
type: bug
issues: []
6 changes: 6 additions & 0 deletions docs/changelog/107779.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 107779
summary: Allow rescorer with field collapsing
area: Search
type: enhancement
issues:
- 27243
6 changes: 6 additions & 0 deletions docs/changelog/107813.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 107813
summary: Increase size of big arrays only when there is an actual value in the aggregators
(Analytics module)
area: Aggregations
type: enhancement
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/107877.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 107877
summary: Support metrics counter types in ESQL
area: "ES|QL"
type: enhancement
issues: []
6 changes: 6 additions & 0 deletions docs/changelog/107947.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 107947
summary: "ESQL: Fix equals `hashCode` for functions"
area: ES|QL
type: bug
issues:
- 104393
5 changes: 5 additions & 0 deletions docs/changelog/107969.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 107969
summary: Disable PIT for remote clusters
area: Transform
type: bug
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/107990.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 107990
summary: Optimise `time_series` aggregation for single value fields
area: TSDB
type: enhancement
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/108016.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 108016
summary: Optimise `BinaryRangeAggregator` for single value fields
area: Aggregations
type: enhancement
issues: []
2 changes: 1 addition & 1 deletion docs/reference/ccr/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ cluster with cluster alias `leader`.
"num_nodes_connected" : 1, <1>
"max_connections_per_cluster" : 3,
"initial_connect_timeout" : "30s",
"skip_unavailable" : false,
"skip_unavailable" : true,
"mode" : "sniff"
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/esql/functions/examples/bucket.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ include::{esql-specs}/bucket.csv-spec[tag=bucket_in_agg]
|===
include::{esql-specs}/bucket.csv-spec[tag=bucket_in_agg-result]
|===

`BUCKET` may be used in both the aggregating and grouping part of the
<<esql-stats-by, STATS ... BY ...>> command provided that in the aggregating
part the function is referenced by an alias defined in the
Expand All @@ -121,3 +120,4 @@ include::{esql-specs}/bucket.csv-spec[tag=reuseGroupingFunctionWithExpression]
|===
include::{esql-specs}/bucket.csv-spec[tag=reuseGroupingFunctionWithExpression-result]
|===

3 changes: 2 additions & 1 deletion docs/reference/esql/functions/kibana/definition/bucket.json
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,7 @@
"FROM employees\n| STATS COUNT(*) by bs = BUCKET(salary, 20, 25324, 74999)\n| SORT bs",
"FROM employees\n| WHERE hire_date >= \"1985-01-01T00:00:00Z\" AND hire_date < \"1986-01-01T00:00:00Z\"\n| STATS c = COUNT(1) BY b = BUCKET(salary, 5000.)\n| SORT b",
"FROM sample_data \n| WHERE @timestamp >= NOW() - 1 day and @timestamp < NOW()\n| STATS COUNT(*) BY bucket = BUCKET(@timestamp, 25, NOW() - 1 day, NOW())",
"FROM employees\n| WHERE hire_date >= \"1985-01-01T00:00:00Z\" AND hire_date < \"1986-01-01T00:00:00Z\"\n| STATS AVG(salary) BY bucket = BUCKET(hire_date, 20, \"1985-01-01T00:00:00Z\", \"1986-01-01T00:00:00Z\")\n| SORT bucket"
"FROM employees\n| WHERE hire_date >= \"1985-01-01T00:00:00Z\" AND hire_date < \"1986-01-01T00:00:00Z\"\n| STATS AVG(salary) BY bucket = BUCKET(hire_date, 20, \"1985-01-01T00:00:00Z\", \"1986-01-01T00:00:00Z\")\n| SORT bucket",
"FROM employees\n| STATS s1 = b1 + 1, s2 = BUCKET(salary / 1000 + 999, 50.) + 2 BY b1 = BUCKET(salary / 100 + 99, 50.), b2 = BUCKET(salary / 1000 + 999, 50.)\n| SORT b1, b2\n| KEEP s1, b1, s2, b2"
]
}
36 changes: 36 additions & 0 deletions docs/reference/esql/functions/kibana/definition/to_double.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,42 @@
"variadic" : false,
"returnType" : "double"
},
{
"params" : [
{
"name" : "field",
"type" : "counter_double",
"optional" : false,
"description" : "Input value. The input can be a single- or multi-valued column or an expression."
}
],
"variadic" : false,
"returnType" : "double"
},
{
"params" : [
{
"name" : "field",
"type" : "counter_integer",
"optional" : false,
"description" : "Input value. The input can be a single- or multi-valued column or an expression."
}
],
"variadic" : false,
"returnType" : "double"
},
{
"params" : [
{
"name" : "field",
"type" : "counter_long",
"optional" : false,
"description" : "Input value. The input can be a single- or multi-valued column or an expression."
}
],
"variadic" : false,
"returnType" : "double"
},
{
"params" : [
{
Expand Down
12 changes: 12 additions & 0 deletions docs/reference/esql/functions/kibana/definition/to_integer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@
"variadic" : false,
"returnType" : "integer"
},
{
"params" : [
{
"name" : "field",
"type" : "counter_integer",
"optional" : false,
"description" : "Input value. The input can be a single- or multi-valued column or an expression."
}
],
"variadic" : false,
"returnType" : "integer"
},
{
"params" : [
{
Expand Down
24 changes: 24 additions & 0 deletions docs/reference/esql/functions/kibana/definition/to_long.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,30 @@
"variadic" : false,
"returnType" : "long"
},
{
"params" : [
{
"name" : "field",
"type" : "counter_integer",
"optional" : false,
"description" : "Input value. The input can be a single- or multi-valued column or an expression."
}
],
"variadic" : false,
"returnType" : "long"
},
{
"params" : [
{
"name" : "field",
"type" : "counter_long",
"optional" : false,
"description" : "Input value. The input can be a single- or multi-valued column or an expression."
}
],
"variadic" : false,
"returnType" : "long"
},
{
"params" : [
{
Expand Down
3 changes: 3 additions & 0 deletions docs/reference/esql/functions/types/to_double.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
|===
field | result
boolean | double
counter_double | double
counter_integer | double
counter_long | double
datetime | double
double | double
integer | double
Expand Down
1 change: 1 addition & 0 deletions docs/reference/esql/functions/types/to_integer.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
|===
field | result
boolean | integer
counter_integer | integer
datetime | integer
double | integer
integer | integer
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/esql/functions/types/to_long.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
|===
field | result
boolean | long
counter_integer | long
counter_long | long
datetime | long
double | long
integer | long
Expand Down
Loading

0 comments on commit 0beb630

Please sign in to comment.