Skip to content

Commit bf36855

Browse files
authored
Fix antlr4 parser issues (#1094)
* Fix antlr4 parser issues Signed-off-by: Lantao Jin <ltjin@amazon.com> * Case insensitive lexer Signed-off-by: Lantao Jin <ltjin@amazon.com> * revert useless change Signed-off-by: Lantao Jin <ltjin@amazon.com> * remove tokens file Signed-off-by: Lantao Jin <ltjin@amazon.com> --------- Signed-off-by: Lantao Jin <ltjin@amazon.com>
1 parent 1a67dc6 commit bf36855

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ppl-spark-integration/src/main/antlr4/OpenSearchPPLLexer.g4

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
lexer grammar OpenSearchPPLLexer;
88

99
channels { WHITESPACE, ERRORCHANNEL }
10-
10+
options { caseInsensitive = true; }
1111

1212
// COMMAND KEYWORDS
1313
SEARCH: 'SEARCH';

ppl-spark-integration/src/main/antlr4/OpenSearchPPLParser.g4

+4
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,11 @@ keywordsCanBeId
11151115
| comparisonOperator
11161116
| explainMode
11171117
| correlationType
1118+
| geoIpProperty
11181119
// commands assist keywords
1120+
| GEOIP
1121+
| OVERRIDE
1122+
| ARROW
11191123
| IN
11201124
| SOURCE
11211125
| INDEX

0 commit comments

Comments
 (0)