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 Double cast parses fine, but not inside a function eg. a COUNT. then it gives the error below
SyntaxError: Expected "!=", "!~", "!~*", "#-", "#>", "#>>", "%", "&&", "(", ")", "*", "+", ",", "-", "--", "->", "->>", "/", "/*", "<", "<=", "<>", "<@", "=", ">", ">=", "?", "?&", "?|", "@>", "AND", "AS", "BETWEEN", "ILIKE", "IN", "IS", "LIKE", "NOT", "OR", "ORDER", "SIMILAR", "\"", "||", "~", "~*", [ \t\n\r], or [A-Za-z_一-龥] but ":" found.
Database Engine Redshift
To Reproduce Add the following test case to redshift.spec.js
it('should support double cast inside count', () => { const sql = "SELECT COUNT(DISTINCT event_time::DATE::TEXT || '_' || event_type) FROM my_events" expect(getParsedSql(sql)).to.be.equal("SELECT COUNT(DISTINCT event_time::DATE::TEXT || '_' || event_type) FROM my_events") })
The text was updated successfully, but these errors were encountered:
taozhi8833998
No branches or pull requests
Describe the bug
Double cast parses fine, but not inside a function eg. a COUNT. then it gives the error below
Database Engine
Redshift
To Reproduce
Add the following test case to redshift.spec.js
The text was updated successfully, but these errors were encountered: