Skip to content

Commit df19931

Browse files
committed
fix test
1 parent 7282996 commit df19931

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/CrossClusterLookupJoinUnsupportedIT.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void testLookupJoinUnsupported() throws IOException {
5656
randomBoolean()
5757
)
5858
);
59-
assertThat(ex.getMessage(), containsString("LOOKUP JOIN with remote indices can't be executed after STATS"));
59+
assertThat(ex.getMessage(), containsString("LOOKUP JOIN with remote indices can't be executed after Aggregate"));
6060

6161
ex = expectThrows(
6262
VerificationException.class,
@@ -65,7 +65,16 @@ public void testLookupJoinUnsupported() throws IOException {
6565
randomBoolean()
6666
)
6767
);
68-
assertThat(ex.getMessage(), containsString("LOOKUP JOIN with remote indices can't be executed after SORT"));
68+
assertThat(ex.getMessage(), containsString("LOOKUP JOIN with remote indices can't be executed after OrderBy"));
69+
70+
ex = expectThrows(
71+
VerificationException.class,
72+
() -> runQuery(
73+
"FROM logs-*,c*:logs-* | LIMIT 2 | EVAL lookup_key = v | LOOKUP JOIN values_lookup ON lookup_key",
74+
randomBoolean()
75+
)
76+
);
77+
assertThat(ex.getMessage(), containsString("LOOKUP JOIN with remote indices can't be executed after Limit"));
6978

7079
setupHostsEnrich();
7180
ex = expectThrows(

0 commit comments

Comments
 (0)