Skip to content

Commit 784ca1f

Browse files
Merge branch 'main' into StatementParserTests
2 parents effea36 + 011557d commit 784ca1f

File tree

62 files changed

+2563
-2265
lines changed

Some content is hidden

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

62 files changed

+2563
-2265
lines changed

.backportrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"upstream" : "elastic/elasticsearch",
3-
"targetBranchChoices" : [ "main", "8.x", "8.17", "8.16", "8.15", "8.14", "8.13", "8.12", "8.11", "8.10", "8.9", "8.8", "8.7", "8.6", "8.5", "8.4", "8.3", "8.2", "8.1", "8.0", "7.17", "6.8" ],
3+
"targetBranchChoices" : [ "main", "8.x", "8.18", "8.17", "8.16", "8.15", "8.14", "8.13", "8.12", "8.11", "8.10", "8.9", "8.8", "8.7", "8.6", "8.5", "8.4", "8.3", "8.2", "8.1", "8.0", "7.17", "6.8" ],
44
"targetPRLabels" : [ "backport" ],
55
"branchLabelMapping" : {
66
"^v9.0.0$" : "main",
7-
"^v8.18.0$" : "8.x",
7+
"^v8.19.0$" : "8.x",
88
"^v(\\d+).(\\d+).\\d+(?:-(?:alpha|beta|rc)\\d+)?$" : "$1.$2"
99
}
1010
}

.buildkite/pipelines/periodic-packaging.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,22 @@ steps:
335335
env:
336336
BWC_VERSION: 8.18.0
337337

338+
- label: "{{matrix.image}} / 8.19.0 / packaging-tests-upgrade"
339+
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.19.0
340+
timeout_in_minutes: 300
341+
matrix:
342+
setup:
343+
image:
344+
- rocky-8
345+
- ubuntu-2004
346+
agents:
347+
provider: gcp
348+
image: family/elasticsearch-{{matrix.image}}
349+
machineType: custom-16-32768
350+
buildDirectory: /dev/shm/bk
351+
env:
352+
BWC_VERSION: 8.19.0
353+
338354
- label: "{{matrix.image}} / 9.0.0 / packaging-tests-upgrade"
339355
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v9.0.0
340356
timeout_in_minutes: 300

.buildkite/pipelines/periodic.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,25 @@ steps:
363363
- signal_reason: agent_stop
364364
limit: 3
365365

366+
- label: 8.19.0 / bwc
367+
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.19.0#bwcTest
368+
timeout_in_minutes: 300
369+
agents:
370+
provider: gcp
371+
image: family/elasticsearch-ubuntu-2004
372+
machineType: n1-standard-32
373+
buildDirectory: /dev/shm/bk
374+
preemptible: true
375+
env:
376+
BWC_VERSION: 8.19.0
377+
retry:
378+
automatic:
379+
- exit_status: "-1"
380+
limit: 3
381+
signal_reason: none
382+
- signal_reason: agent_stop
383+
limit: 3
384+
366385
- label: 9.0.0 / bwc
367386
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v9.0.0#bwcTest
368387
timeout_in_minutes: 300

.ci/bwcVersions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ BWC_VERSION:
1818
- "8.16.4"
1919
- "8.17.2"
2020
- "8.18.0"
21+
- "8.19.0"
2122
- "9.0.0"

branches.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
{
88
"branch": "8.16"
99
},
10+
{
11+
"branch": "9.0"
12+
},
13+
{
14+
"branch": "8.18"
15+
},
1016
{
1117
"branch": "8.17"
1218
},

build-tools-internal/src/integTest/resources/org/elasticsearch/gradle/internal/fake_git/remote/settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ include ":distribution:bwc:bugfix2"
1414
include ":distribution:bwc:minor"
1515
include ":distribution:bwc:major"
1616
include ":distribution:bwc:staged"
17+
include ":distribution:bwc:staged2"
1718
include ":distribution:bwc:maintenance"
1819
include ":distribution:archives:darwin-tar"
1920
include ":distribution:archives:oss-darwin-tar"

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BwcVersions.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ private Map<Version, UnreleasedVersionInfo> computeUnreleased(List<String> devel
166166
.toList();
167167

168168
boolean existingBugfix = false;
169+
boolean existingStaged = false;
169170
for (int i = 0; i < featureFreezeBranches.size(); i++) {
170171
String branch = featureFreezeBranches.get(i);
171172
Version version = versions.stream()
@@ -193,7 +194,9 @@ private Map<Version, UnreleasedVersionInfo> computeUnreleased(List<String> devel
193194
if (i == featureFreezeBranches.size() - 1) {
194195
result.put(version, new UnreleasedVersionInfo(version, branch, ":distribution:bwc:maintenance"));
195196
} else if (version.getRevision() == 0) { // This is the next staged minor
196-
result.put(version, new UnreleasedVersionInfo(version, branch, ":distribution:bwc:staged"));
197+
String project = existingStaged ? "staged2" : "staged";
198+
result.put(version, new UnreleasedVersionInfo(version, branch, ":distribution:bwc:" + project));
199+
existingStaged = true;
197200
} else { // This is a bugfix
198201
String project = existingBugfix ? "bugfix2" : "bugfix";
199202
result.put(version, new UnreleasedVersionInfo(version, branch, ":distribution:bwc:" + project));

build-tools-internal/src/test/groovy/org/elasticsearch/gradle/internal/BwcVersionsSpec.groovy

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,39 @@ class BwcVersionsSpec extends Specification {
7777
bwc.indexCompatible == [v('8.14.0'), v('8.14.1'), v('8.14.2'), v('8.15.0'), v('8.15.1'), v('8.15.2'), v('8.16.0'), v('8.16.1'), v('8.17.0'), v('8.18.0'), v('9.0.0')]
7878
}
7979

80+
def "current version is next major with two staged minors"() {
81+
given:
82+
addVersion('7.17.10', '8.9.0')
83+
addVersion('8.15.0', '9.9.0')
84+
addVersion('8.15.1', '9.9.0')
85+
addVersion('8.15.2', '9.9.0')
86+
addVersion('8.16.0', '9.10.0')
87+
addVersion('8.16.1', '9.10.0')
88+
addVersion('8.16.2', '9.10.0')
89+
addVersion('8.17.0', '9.10.0')
90+
addVersion('8.17.1', '9.10.0')
91+
addVersion('8.18.0', '9.10.0')
92+
addVersion('8.19.0', '9.10.0')
93+
addVersion('9.0.0', '10.0.0')
94+
addVersion('9.1.0', '10.1.0')
95+
96+
when:
97+
def bwc = new BwcVersions(versionLines, v('9.1.0'), ['main', '9.0', '8.x', '8.18', '8.17', '8.16', '7.17'])
98+
def unreleased = bwc.unreleased.collectEntries { [it, bwc.unreleasedInfo(it)] }
99+
100+
then:
101+
unreleased == [
102+
(v('8.16.2')): new UnreleasedVersionInfo(v('8.16.2'), '8.16', ':distribution:bwc:bugfix2'),
103+
(v('8.17.1')): new UnreleasedVersionInfo(v('8.17.1'), '8.17', ':distribution:bwc:bugfix'),
104+
(v('8.18.0')): new UnreleasedVersionInfo(v('8.18.0'), '8.18', ':distribution:bwc:staged2'),
105+
(v('8.19.0')): new UnreleasedVersionInfo(v('8.19.0'), '8.x', ':distribution:bwc:minor'),
106+
(v('9.0.0')): new UnreleasedVersionInfo(v('9.0.0'), '9.0', ':distribution:bwc:staged'),
107+
(v('9.1.0')): new UnreleasedVersionInfo(v('9.1.0'), 'main', ':distribution'),
108+
]
109+
bwc.wireCompatible == [v('8.19.0'), v('9.0.0'), v('9.1.0')]
110+
bwc.indexCompatible == [v('8.15.0'), v('8.15.1'), v('8.15.2'), v('8.16.0'), v('8.16.1'), v('8.16.2'), v('8.17.0'), v('8.17.1'), v('8.18.0'), v('8.19.0'), v('9.0.0'), v('9.1.0')]
111+
}
112+
80113
def "current version is first new minor in major series"() {
81114
given:
82115
addVersion('7.17.10', '8.9.0')

distribution/bwc/staged2/build.gradle

Whitespace-only changes.

docs/changelog/121193.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pr: 121193
2+
summary: Enable LOOKUP JOIN in non-snapshot builds
3+
area: ES|QL
4+
type: enhancement
5+
issues:
6+
- 121185
7+
highlight:
8+
title: Enable LOOKUP JOIN in non-snapshot builds
9+
body: |-
10+
This effectively releases LOOKUP JOIN into tech preview. Docs will
11+
follow in a separate PR.
12+
13+
- Enable the lexing/grammar for LOOKUP JOIN in non-snapshot builds.
14+
- Remove the grammar for the unsupported `| JOIN ...` command (without `LOOKUP` as first keyword). The way the lexer modes work, otherwise we'd also have to enable `| JOIN ...` syntax on non-snapshot builds and would have to add additional validation to provide appropriate error messages.
15+
- Remove grammar for `LOOKUP JOIN index AS ...` because qualifiers are not yet supported. Otherwise we'd have to put in additional validation as well to prevent such queries.
16+
17+
Also fix https://github.com/elastic/elasticsearch/issues/121185
18+
notable: true

0 commit comments

Comments
 (0)