Skip to content

Commit f5034fc

Browse files
committed
fix StatementParserTests
1 parent addf709 commit f5034fc

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
@@ -3339,10 +3339,9 @@ public void testPreserveParanthesis() {
33393339

33403340
public void testRandomSample() {
33413341
expectError("FROM test | RANDOM_SAMPLE .1 2 3", "line 1:32: extraneous input '3' expecting <EOF>");
3342-
expectError("FROM test | RANDOM_SAMPLE .1 \"2\"", "line 1:30: mismatched input '\"2\"' expecting {INTEGER_LITERAL, '+', '-'}");
3342+
expectError("FROM test | RANDOM_SAMPLE .1 \"2\"", "line 1:30: extraneous input '\"2\"' expecting <EOF>");
33433343
expectError("FROM test | RANDOM_SAMPLE 1", "line 1:27: mismatched input '1' expecting {DECIMAL_LITERAL, '+', '-'}");
33443344
expectError("FROM test | RANDOM_SAMPLE", "line 1:26: mismatched input '<EOF>' expecting {DECIMAL_LITERAL, '+', '-'}");
3345-
expectError("FROM test | RANDOM_SAMPLE -.1", "line 1:30: mismatched input '<EOF>' expecting {INTEGER_LITERAL, '+', '-'}");
33463345
expectError("FROM test | RANDOM_SAMPLE +.1 2147483648", "line 1:31: seed must be an integer, provided [2147483648] of type [LONG]");
33473346
}
33483347

0 commit comments

Comments
 (0)