Skip to content

Commit cfb6905

Browse files
committed
Merge remote-tracking branch 'upstream/main' into logs-message-default-sort
2 parents 57aa1ad + 4ff9431 commit cfb6905

File tree

215 files changed

+6509
-1422
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+6509
-1422
lines changed

.buildkite/scripts/trigger-if-java-ea-new-build.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
RECENT_TIME_WINDOW=${RECENT_TIME_WINDOW:-24}
1414

1515
# Extract current JDK major version from bundled_jdk in version.properties
16-
CURRENT_JDK=$(grep "^bundled_jdk =" build-tools-internal/version.properties | cut -d'=' -f2 | tr -d ' ' | cut -d'.' -f1)
16+
CURRENT_JDK=$(grep "^bundled_jdk =" build-tools-internal/version.properties | cut -d'=' -f2 | tr -d ' ' | cut -d'+' -f1)
1717
TARGET_JDK=$((CURRENT_JDK + 1))
1818

1919
echo "Current JDK major version: $CURRENT_JDK"
@@ -80,13 +80,13 @@ echo "SHOULD_TRIGGER: $SHOULD_TRIGGER"
8080

8181
if [[ "$SHOULD_TRIGGER" == "true" ]]; then
8282
EFFECTIVE_START_DATE=$(date -u -d "@$BUILD_TIME" +"%Y-%m-%dT%H:%M:%SZ" 2>/dev/null || date -u -r "$BUILD_TIME" +"%Y-%m-%dT%H:%M:%SZ" 2>/dev/null || echo "")
83-
83+
8484
# Use "master" branch for elasticsearch-performance-esbench-jdk when BUILDKITE_BRANCH is "main"
8585
TRIGGER_BRANCH="$BUILDKITE_BRANCH"
8686
if [[ "$BUILDKITE_BRANCH" == "main" ]]; then
8787
TRIGGER_BRANCH="master"
8888
fi
89-
89+
9090
echo "Triggering performance-esbench-jdk for new jdk build $JDK_IDENTIFIER"
9191
cat << EOF | buildkite-agent pipeline upload
9292
steps:
@@ -98,5 +98,7 @@ steps:
9898
env:
9999
EFFECTIVE_START_DATE: "$EFFECTIVE_START_DATE"
100100
EXECUTION_MODE: "start-run"
101+
JDK_VERSION: "$TARGET_JDK"
102+
JDK_IDENTIFIER: "$JDK_IDENTIFIER"
101103
EOF
102104
fi

benchmarks/src/main/java/org/elasticsearch/benchmark/_nightly/esql/QueryPlanningBenchmark.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99

1010
package org.elasticsearch.benchmark._nightly.esql;
1111

12+
import org.elasticsearch.TransportVersion;
1213
import org.elasticsearch.common.logging.LogConfigurator;
1314
import org.elasticsearch.common.settings.Settings;
1415
import org.elasticsearch.index.IndexMode;
1516
import org.elasticsearch.license.XPackLicenseState;
16-
import org.elasticsearch.xpack.esql.analysis.Analyzer;
17-
import org.elasticsearch.xpack.esql.analysis.AnalyzerContext;
18-
import org.elasticsearch.xpack.esql.analysis.EnrichResolution;
19-
import org.elasticsearch.xpack.esql.analysis.Verifier;
17+
import org.elasticsearch.xpack.esql.analysis.*;
2018
import org.elasticsearch.xpack.esql.core.expression.FoldContext;
2119
import org.elasticsearch.xpack.esql.core.type.EsField;
2220
import org.elasticsearch.xpack.esql.core.util.DateUtils;
@@ -29,7 +27,6 @@
2927
import org.elasticsearch.xpack.esql.parser.EsqlParser;
3028
import org.elasticsearch.xpack.esql.parser.QueryParams;
3129
import org.elasticsearch.xpack.esql.plan.logical.LogicalPlan;
32-
import org.elasticsearch.xpack.esql.plugin.EsqlPlugin;
3330
import org.elasticsearch.xpack.esql.plugin.QueryPragmas;
3431
import org.elasticsearch.xpack.esql.session.Configuration;
3532
import org.elasticsearch.xpack.esql.telemetry.Metrics;
@@ -80,15 +77,15 @@ public void setup() {
8077
null,
8178
null,
8279
new QueryPragmas(Settings.EMPTY),
83-
EsqlPlugin.QUERY_RESULT_TRUNCATION_MAX_SIZE.getDefault(Settings.EMPTY),
84-
EsqlPlugin.QUERY_RESULT_TRUNCATION_DEFAULT_SIZE.getDefault(Settings.EMPTY),
80+
AnalyzerSettings.QUERY_RESULT_TRUNCATION_MAX_SIZE.getDefault(Settings.EMPTY),
81+
AnalyzerSettings.QUERY_RESULT_TRUNCATION_DEFAULT_SIZE.getDefault(Settings.EMPTY),
8582
"",
8683
false,
8784
Map.of(),
8885
System.nanoTime(),
8986
false,
90-
EsqlPlugin.QUERY_TIMESERIES_RESULT_TRUNCATION_DEFAULT_SIZE.getDefault(Settings.EMPTY),
91-
EsqlPlugin.QUERY_TIMESERIES_RESULT_TRUNCATION_DEFAULT_SIZE.get(Settings.EMPTY)
87+
AnalyzerSettings.QUERY_TIMESERIES_RESULT_TRUNCATION_DEFAULT_SIZE.getDefault(Settings.EMPTY),
88+
AnalyzerSettings.QUERY_TIMESERIES_RESULT_TRUNCATION_DEFAULT_SIZE.get(Settings.EMPTY)
9289
);
9390

9491
var fields = 10_000;
@@ -102,6 +99,9 @@ public void setup() {
10299

103100
var functionRegistry = new EsqlFunctionRegistry();
104101

102+
// Assume all nodes are on the current version for the benchmark.
103+
TransportVersion minimumVersion = TransportVersion.current();
104+
105105
telemetry = new PlanTelemetry(functionRegistry);
106106
defaultParser = new EsqlParser();
107107
manyFieldsAnalyzer = new Analyzer(
@@ -111,11 +111,12 @@ public void setup() {
111111
IndexResolution.valid(esIndex),
112112
Map.of(),
113113
new EnrichResolution(),
114-
InferenceResolution.EMPTY
114+
InferenceResolution.EMPTY,
115+
minimumVersion
115116
),
116117
new Verifier(new Metrics(functionRegistry), new XPackLicenseState(() -> 0L))
117118
);
118-
defaultOptimizer = new LogicalPlanOptimizer(new LogicalOptimizerContext(config, FoldContext.small()));
119+
defaultOptimizer = new LogicalPlanOptimizer(new LogicalOptimizerContext(config, FoldContext.small(), minimumVersion));
119120
}
120121

121122
private LogicalPlan plan(EsqlParser parser, Analyzer analyzer, LogicalPlanOptimizer optimizer, String query) {

benchmarks/src/main/java/org/elasticsearch/benchmark/compute/operator/EvalBenchmark.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.elasticsearch.core.TimeValue;
3434
import org.elasticsearch.logging.LogManager;
3535
import org.elasticsearch.logging.Logger;
36+
import org.elasticsearch.xpack.esql.analysis.AnalyzerSettings;
3637
import org.elasticsearch.xpack.esql.core.expression.Expression;
3738
import org.elasticsearch.xpack.esql.core.expression.FieldAttribute;
3839
import org.elasticsearch.xpack.esql.core.expression.FoldContext;
@@ -55,7 +56,6 @@
5556
import org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.Equals;
5657
import org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.LessThan;
5758
import org.elasticsearch.xpack.esql.planner.Layout;
58-
import org.elasticsearch.xpack.esql.plugin.EsqlPlugin;
5959
import org.elasticsearch.xpack.esql.session.Configuration;
6060
import org.openjdk.jmh.annotations.Benchmark;
6161
import org.openjdk.jmh.annotations.BenchmarkMode;
@@ -359,15 +359,15 @@ private static Configuration configuration() {
359359
null,
360360
null,
361361
null,
362-
EsqlPlugin.QUERY_RESULT_TRUNCATION_MAX_SIZE.get(Settings.EMPTY),
363-
EsqlPlugin.QUERY_RESULT_TRUNCATION_DEFAULT_SIZE.get(Settings.EMPTY),
362+
AnalyzerSettings.QUERY_RESULT_TRUNCATION_MAX_SIZE.get(Settings.EMPTY),
363+
AnalyzerSettings.QUERY_RESULT_TRUNCATION_DEFAULT_SIZE.get(Settings.EMPTY),
364364
null,
365365
false,
366366
Map.of(),
367367
0,
368368
false,
369-
EsqlPlugin.QUERY_TIMESERIES_RESULT_TRUNCATION_MAX_SIZE.getDefault(Settings.EMPTY),
370-
EsqlPlugin.QUERY_TIMESERIES_RESULT_TRUNCATION_DEFAULT_SIZE.getDefault(Settings.EMPTY)
369+
AnalyzerSettings.QUERY_TIMESERIES_RESULT_TRUNCATION_MAX_SIZE.getDefault(Settings.EMPTY),
370+
AnalyzerSettings.QUERY_TIMESERIES_RESULT_TRUNCATION_DEFAULT_SIZE.getDefault(Settings.EMPTY)
371371
);
372372
}
373373

docs/changelog/135883.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 135883
2+
summary: Improve block loader for source only runtime `geo_point` fields
3+
area: Mapping
4+
type: enhancement
5+
issues: []

docs/changelog/136348.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 136348
2+
summary: Add error message when using inline stats on TS
3+
area: ES|QL
4+
type: bug
5+
issues:
6+
- 136092

docs/changelog/136350.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 136350
2+
summary: Prevent NPE when generating snapshot metrics before initial cluster state is set
3+
area: Snapshot/Restore
4+
type: bug
5+
issues: []

docs/changelog/136444.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 136444
2+
summary: Create new block when filter `OrdinalBytesRefBlock`
3+
area: ES|QL
4+
type: bug
5+
issues:
6+
- 136423

docs/changelog/136547.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 136547
2+
summary: Fetch search phase coordinator duration APM metric
3+
area: Search
4+
type: enhancement
5+
issues: []

docs/changelog/136563.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 136563
2+
summary: Bugfix/disable matches highlight knn
3+
area: Vector Search
4+
type: bug
5+
issues: []

docs/redirects.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,10 @@ redirects:
105105
'reference/query-languages/esql/kibana/docs/functions/st_geohash_to_long.md': 'reference/query-languages/esql/esql-functions-operators.md'
106106
'reference/query-languages/esql/kibana/docs/functions/st_geotile_to_long.md': 'reference/query-languages/esql/esql-functions-operators.md'
107107
'reference/query-languages/esql/kibana/docs/functions/st_geohex_to_long.md': 'reference/query-languages/esql/esql-functions-operators.md'
108+
109+
'reference/elasticsearch/mapping-reference/text.md':
110+
to: 'reference/elasticsearch/mapping-reference/text.md'
111+
anchors: { } # pass-through unlisted anchors in the `many` ruleset
112+
many:
113+
- to: 'reference/elasticsearch/mapping-reference/match-only-text.md'
114+
anchors: { 'match-only-text-field-type', 'match-only-text-params' }

0 commit comments

Comments
 (0)