Skip to content

Commit 3386284

Browse files
ES|QL fix StatementParserTests to take into consideration SNAPSHOT (#130098) (#130458)
(cherry picked from commit 78eeecc) Co-authored-by: Luigi Dell'Aquila <[email protected]>
1 parent e32af46 commit 3386284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/parser/StatementParserTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3176,7 +3176,7 @@ public void testValidJoinPattern() {
31763176
}
31773177

31783178
public void testInvalidFromPatterns() {
3179-
var sourceCommands = new String[] { "FROM", "TS" };
3179+
var sourceCommands = Build.current().isSnapshot() ? new String[] { "FROM", "TS" } : new String[] { "FROM" };
31803180
var indexIsBlank = "Blank index specified in index pattern";
31813181
var remoteIsEmpty = "remote part is empty";
31823182
var invalidDoubleColonUsage = "invalid usage of :: separator";

0 commit comments

Comments
 (0)