Please do! The more examples of working code the better. This is the sort of thing I would love to add to http://github.com/michaelmior/calcite-notebooks -- Michael Mior mm...@apache.org
Le mar. 21 mai 2019 à 21:39, Yuzhao Chen <yuzhao....@gmail.com> a écrit : > > 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 <duc.phamm...@toshiba-tsdv.com>,写道: > > 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