Skip to content

Commit bfc598e

Browse files
Negative test with multiple fields per SET
1 parent dd25ccb commit bfc598e

File tree

1 file changed

+2
-0
lines changed
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis

1 file changed

+2
-0
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/ParsingTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ public void testSet() {
227227
assertThat(query.plan(), is(instanceOf(Eval.class)));
228228
assertThat(query.settings().size(), is(1));
229229
checkSetting(query, 0, "bar", true);
230+
231+
expectThrows(ParsingException.class, () -> parse("SET foo = 1, bar = 2; row a = 1", new QueryParams()));
230232
}
231233

232234
public void testSetWithTripleQuotes() {

0 commit comments

Comments
 (0)