Skip to content

Commit 04952c0

Browse files
committed
Include SAMPLE command and fix typo
1 parent 41cd3a0 commit 04952c0

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

x-pack/plugin/esql/src/main/antlr/lexer/Fork.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ DEV_FORK : {this.isDevVersion()}? 'fork' -> pushMode(FORK_MODE);
1313

1414
mode FORK_MODE;
1515
FORK_LP : LP -> type(LP), pushMode(DEFAULT_MODE);
16-
FORK_RO : RP -> type(RP), popMode, popMode;
16+
FORK_RP : RP -> type(RP), popMode, popMode;
1717
FORK_PIPE : PIPE -> type(PIPE), popMode;
1818

1919
FORK_WS : WS -> channel(HIDDEN);

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseLexer.interp

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseLexer.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3317,6 +3317,7 @@ public void testForkAllCommands() {
33173317
( ENRICH idx2 on f1 with f2 = f3 )
33183318
( FORK ( WHERE a:"baz" ) ( EVAL x = [ 1, 2, 3 ] ) )
33193319
( COMPLETION a = b WITH c )
3320+
( SAMPLE 0.99 )
33203321
| KEEP a
33213322
""";
33223323

0 commit comments

Comments
 (0)