Sorry I only found the grammar template in our site [1] and some simple test demos in ServerParserTest [2].
I think we should support detail doc with demos of all kinds of supported DDLs and DMLs, will fire a JIRA about this. [1] http://calcite.apache.org/docs/reference.html#ddl-extensions [2] https://github.com/apache/calcite/blob/61b858db13c2e1997e92172a09f38c639ffdceee/server/src/test/java/org/apache/calcite/test/ServerParserTest.java#L136 Best, Danny Chan 在 2019年5月22日 +0800 AM7:19,Phạm Minh Đức <[email protected]>,写道: > Dear Dev Team's Apache Calcite, > My name is Duc. I'm working at Toshiba Group in Vietnam. > I'm implementing how to parser DDL file using library Apache Calcite. > I'm trying with below solution, but has exception is thrown and i don't know > that why. > InputStream ddlFile = new FileInputStream("ddlTest.sql"); > SqlDdlParserImpl ddlParser = new SqlDdlParserImpl(ddlFile,"UTF8"); > SqlNode node = ddlParser.SqlStmt(); > Could you please send me a example of DDL file or give me a suggestion about > this proplem. > Thank you very much for your hear m ! > Best regards, > Pham Minh Duc. > -- > This mail was scanned by BitDefender > For more information please visit http://www.bitdefender.com
