[ https://issues.apache.org/jira/browse/CALCITE-4135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17161646#comment-17161646 ]
Julian Hyde commented on CALCITE-4135: -------------------------------------- The parser class (there are several, one of which is SqlDdlParserImpl.java) are generated during the build. {noformat} ./gradlew build ... > Task :core:javaCCMain Java Compiler Compiler Version 4.0 (Parser Generator) (type "javacc" with no arguments for help) Reading from file /home/jhyde/dev/calcite.3/core/build/fmpp/fmppMain/javacc/Parser.jj . . . Warning: Output directory "/home/jhyde/dev/calcite.3/core/build/javacc/javaCCMain/org/apache/calcite/sql/parser/impl" does not exist. Creating the directory. Note: UNICODE_INPUT option is specified. Please make sure you create the parser/lexer using a Reader with the correct character encoding. > Task :babel:javaCCMain Java Compiler Compiler Version 4.0 (Parser Generator) (type "javacc" with no arguments for help) Reading from file /home/jhyde/dev/calcite.3/babel/build/fmpp/fmppMain/javacc/Parser.jj . . . Warning: Output directory "/home/jhyde/dev/calcite.3/babel/build/javacc/javaCCMain/org/apache/calcite/sql/parser/babel" does not exist. Creating the directory. Note: UNICODE_INPUT option is specified. Please make sure you create the parser/lexer using a Reader with the correct character encoding. Warning: Lookahead adequacy checking not being performed since option LOOKAHEAD is more than 1. Set option FORCE_LA_CHECK to true to force checking. File "TokenMgrError.java" does not exist. Will create one. File "ParseException.java" does not exist. Will create one. File "Token.java" does not exist. Will create one. File "SimpleCharStream.java" does not exist. Will create one. Parser generated with 0 errors and 2 warnings. {noformat} Not a bug; will close. > Cannot find SqlDdlParserImpl class, which seems necessary for parsing DDL. > -------------------------------------------------------------------------- > > Key: CALCITE-4135 > URL: https://issues.apache.org/jira/browse/CALCITE-4135 > Project: Calcite > Issue Type: Bug > Components: core > Affects Versions: 1.23.0 > Environment: Custom Java classes built using Gradle. > Reporter: Stewart Bryson > Priority: Major > > I am trying to parse DDL statements, and tried code similar to the following: > [https://stackoverflow.com/questions/53801005/apache-calcite-cant-seem-to-parse-ddl-statements] > However, I cannot find the SqlDdlParserImpl class anywhere. I see several > references to it in the GitHub repo: > [https://github.com/apache/calcite/search?q=SqlDdlParserImpl&unscoped_q=SqlDdlParserImpl] > I have tried using the calcite-core and calcite-server dependencies. What am > I missing? -- This message was sent by Atlassian Jira (v8.3.4#803005)