Re: Cannot parse query that contains colons for casting in postgres sql

2020-01-08 Thread XING JIN
Hi, Rick ~ Babel parser supports casting by double colon [1] [1] https://issues.apache.org/jira/browse/CALCITE-2843 -Jin Rick Liao 于2020年1月9日周四 上午6:05写道: > Hello all, > > I'm trying to parse a postgres sql query that contains :: for casting. The > parser fails when it reaches the colon. I'm

Cannot parse query that contains colons for casting in postgres sql

2020-01-08 Thread Rick Liao
Hello all, I'm trying to parse a postgres sql query that contains :: for casting. The parser fails when it reaches the colon. I'm using version 1.21.0. This is what I'm running (with a simple query to showcase the error): SqlParser.Config parserConfig =