osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can’t seem to parse DDL staements


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
https://github.com/apache/calcite/blob/master/server/src/test/java/org/apache/calcite/test/ServerParserTest.java
 .

On Mon, Dec 17, 2018 at 1:34 AM Dilip Raj Baral <dilip@xxxxxxxxxxxxxxxxx>
wrote:

> 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() or
> SqlParser.parseQuery() failed.
>
> I have detailed the specifics in the following SO question.
>
>
> https://stackoverflow.com/questions/53801005/apache-calcite-cant-seem-to-parse-ddl-statements
>
> Looking forward to a suggestion.
>
> Best regards,
> Dilip Raj Baral
> https://diliprajbaral.com
>
>
>