[
https://issues.apache.org/jira/browse/FLINK-34067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Timo Walther closed FLINK-34067.
--------------------------------
Fix Version/s: 1.19.0
Resolution: Fixed
Fixed in master: 96eea964d2a75d9d953bb14485ed40c9b339f9a2
> Fix javacc warnings in flink-sql-parser
> ---------------------------------------
>
> Key: FLINK-34067
> URL: https://issues.apache.org/jira/browse/FLINK-34067
> Project: Flink
> Issue Type: Improvement
> Affects Versions: 1.19.0
> Reporter: Jim Hughes
> Assignee: Jim Hughes
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.19.0
>
>
> 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)