Combine Calcite BABEL and DDL parsers
mihaibudiu opened this issue · comments
Mihai Budiu commented
https://lists.apache.org/thread/nvlt0jfvvo0gpc5djw24xt8ss68k1ysl
Original problem:
I am trying to parse a DDL statement such as CREATE VIEW V AS SELECT DATE_PART(YEAR, T) FROM TABLE.
If I am using the DDL parser factory, I can parse CREATE VIEW statements but not DATE_PART.
If I am using the BABEL parser factory, I can parse DATE_PART expressions but not CREATE VIEW.
Is there a way to get both?
Mihai Budiu commented
Hopefully Calcite would accept such a contribution.
The alternative is to fork the project, which would entail lots of maintenance headache.