Jim Hughes created FLINK-34067:
----------------------------------
Summary: Fix javacc warnings in flink-sql-parser
Key: FLINK-34067
URL: https://issues.apache.org/jira/browse/FLINK-34067
Project: Flink
Issue Type: Improvement
Reporter: Jim Hughes
Assignee: Jim Hughes
While extending the Flink SQL parser, I noticed these two warnings:
```
[INFO] --- javacc:2.4:javacc (javacc) @ flink-sql-parser ---
Java Compiler Compiler Version 4.0 (Parser Generator)
(type "javacc" with no arguments for help)
Reading from file
.../flink-table/flink-sql-parser/target/generated-sources/javacc/Parser.jj . .
.
Note: UNICODE_INPUT option is specified. Please make sure you create the
parser/lexer using a Reader with the correct character encoding.
Warning: Choice conflict involving two expansions at
line 2043, column 13 and line 2052, column 9 respectively.
A common prefix is: "IF"
Consider using a
lookahead of 2 for earlier expansion.
Warning: Choice conflict involving two expansions at
line 2097, column 13 and line 2105, column 8 respectively.
A common prefix is: "IF"
Consider using a lookahead of 2 for earlier expansion.
```
As the warning suggestions, adding `LOOKAHEAD(2)` in a few places addresses the
warning.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)