Re: Can’t seem to parse DDL staements
Support for some DDL is missing. See for example
Le lun. 17 déc. 2018 à 15:40, Dilip Raj Baral <rajb.dilip@xxxxxxxxx> a
> 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:35:19 AM, Ted Xu (frankxus@xxxxxxxxx) wrote:
> 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
> On Mon, Dec 17, 2018 at 1:34 AM Dilip Raj Baral <dilip@xxxxxxxxxxxxxxxxx>
> > 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
> > DDLs like CREATE TABLE, ALTER TABLE, etc., the SqlParser.parseStmt() or
> > SqlParser.parseQuery() failed.
> > I have detailed the specifics in the following SO question.
> > Looking forward to a suggestion.
> > Best regards,
> > Dilip Raj Baral
> > https://diliprajbaral.com