Skip to content

Commit 9f81ca2

Browse files
committed
fix StatementParserTests
1 parent 1ce2df0 commit 9f81ca2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3316,10 +3316,9 @@ public void testPreserveParanthesis() {
33163316

33173317
public void testRandomSample() {
33183318
expectError("FROM test | RANDOM_SAMPLE .1 2 3", "line 1:32: extraneous input '3' expecting <EOF>");
3319-
expectError("FROM test | RANDOM_SAMPLE .1 \"2\"", "line 1:30: mismatched input '\"2\"' expecting {INTEGER_LITERAL, '+', '-'}");
3319+
expectError("FROM test | RANDOM_SAMPLE .1 \"2\"", "line 1:30: extraneous input '\"2\"' expecting <EOF>");
33203320
expectError("FROM test | RANDOM_SAMPLE 1", "line 1:27: mismatched input '1' expecting {DECIMAL_LITERAL, '+', '-'}");
33213321
expectError("FROM test | RANDOM_SAMPLE", "line 1:26: mismatched input '<EOF>' expecting {DECIMAL_LITERAL, '+', '-'}");
3322-
expectError("FROM test | RANDOM_SAMPLE -.1", "line 1:30: mismatched input '<EOF>' expecting {INTEGER_LITERAL, '+', '-'}");
33233322
expectError("FROM test | RANDOM_SAMPLE +.1 2147483648", "line 1:31: seed must be an integer, provided [2147483648] of type [LONG]");
33243323
}
33253324

0 commit comments

Comments
 (0)