ES|QL fix StatementParserTests to take into consideration SNAPSHOT (#130098)

This commit is contained in:
Luigi Dell'Aquila 2025-06-26 17:08:53 +02:00 committed by GitHub
parent 49506362cf
commit 78eeeccb48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3176,7 +3176,7 @@ public class StatementParserTests extends AbstractStatementParserTests {
}
public void testInvalidFromPatterns() {
var sourceCommands = new String[] { "FROM", "TS" };
var sourceCommands = Build.current().isSnapshot() ? new String[] { "FROM", "TS" } : new String[] { "FROM" };
var indexIsBlank = "Blank index specified in index pattern";
var remoteIsEmpty = "remote part is empty";
var invalidDoubleColonUsage = "invalid usage of :: separator";