We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug A query with SAFE_CAST function used in it could not be parsed.
To Reproduce Steps to reproduce the behavior:
SELECT SAFE_CAST("apple" AS INT64) AS not_a_number;
try { Statement safeCastSt = CCJSqlParserUtil.parse("SELECT SAFE_CAST(\"apple\" AS INT64) AS not_a_number"); } catch (JSQLParserException e) { e.printStackTrace(); }
net.sf.jsqlparser.JSQLParserException at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:51) ... <snipped> ... Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "(" "(" at line 1, column 17. Was expecting one of: "&" "," "::" ";" "<<" ">>" "ACTION" ...
Expected behavior The query would parse successfully.
System
The text was updated successfully, but these errors were encountered:
Fixed by #1634, works with JSQLParser 4.6 Snapshot.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
A query with SAFE_CAST function used in it could not be parsed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The query would parse successfully.
System
The text was updated successfully, but these errors were encountered: