Re: Extending Flink's SQL-Parser

2019-09-18 Thread Rong Rong
Hi Dominik, To add to Rui's answer. there are other examples I can think of on how to extend Calcite's DDL syntax is already in Calcite's Server module [1] and one of our open-sourced project [2]. you might want to check them out. -- Rong [1] https://github.com/apache/calcite/blob/master/server/

Re: Extending Flink's SQL-Parser

2019-09-16 Thread Rui Li
Hi Dominik, I think you can check "parserImpls.ftl" to find out how Flink extends Calcite's original syntax to support features like CREATE TABLE and DROP TABLE, and follow those examples to implement your own syntax. It may also be helpful to check the pom.xml of flink-sql-parser to see how we us