Here is a syntax extension from MGelbana to support PostgreSQL cast “::” [1]
[1] https://github.com/apache/calcite/commit/e8baf4f4720e07cdce1aa2baabf20042b9353bbb Best, Danny Chan 在 2019年10月29日 +0800 PM6:58,devjyoti patra <[email protected]>,写道: > Hi, > > I am writing a SQL statement (ANSI SQL or HiveQL) analyzer which will parse > a given SQL statement into equivalent AST and I am using Babel for this use > case. But when I try to parse statements such as “lateral view explode”, > which is a valid HiveQL syntax, Babel is throwing ParseException. Adding > these as keywords to the default list of keywords for Babel also did not > help. Can someone point me to an example where something similar has been > done. > > Thanks, > Devjyoti
