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?
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?