Re: Can’t seem to parse DDL staements

2018-12-17 Thread Michael Mior
Support for some DDL is missing. See for example https://issues.apache.org/jira/browse/CALCITE-2663 -- Michael Mior mm...@apache.org Le lun. 17 déc. 2018 à 15:40, Dilip Raj Baral a écrit : > Hi, Ted. > > Thanks for the information. That was very helpful. I was not aware of > calcite-server su

Re: Can’t seem to parse DDL staements

2018-12-17 Thread Dilip Raj Baral
Hi, Ted. Thanks for the information. That was very helpful. I was not aware of calcite-server sub project. Also, on a quick look I found missing support for TRUNCATE TABLE, CREATE PROCEDURE and CREATE FUNCTION? Are they not available for real of am I missing something? On 17 December 2018 at 11

Re: Can’t seem to parse DDL staements

2018-12-16 Thread Ted Xu
Hi Dilip, DDL related code including statement parse and data structures are located in calcite-server sub-project. The unit test 'ServerParserTest' may be a good starting point to look into. You can find it here https://github.com/apache/calcite/blob/master/server/src/test/java/org/apache/calcit

Can’t seem to parse DDL staements

2018-12-16 Thread Dilip Raj Baral
Hi, team. I have been using Apache Calcite for about two weeks now for one of the projects at my company. I have found it fun and pretty useful so far. I have been able to parse DMLs very smoothly. However, when I tried to parse DDLs like CREATE TABLE, ALTER TABLE, etc., the SqlParser.parseStmt