Skip to content
New issue

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

Redshift APPROXIMATE not supported #570

Closed
frankfarrell opened this issue Jan 19, 2018 · 0 comments
Closed

Redshift APPROXIMATE not supported #570

frankfarrell opened this issue Jan 19, 2018 · 0 comments
Assignees

Comments

@frankfarrell
Copy link

Using APPROXIMATE in redshift queries as defined here:
https://docs.aws.amazon.com/redshift/latest/dg/r_APPROXIMATE_PERCENTILE_DISC.html
https://docs.aws.amazon.com/redshift/latest/dg/r_COUNT.html

caused this exception to be thrown:

Caused by: net.sf.jsqlparser.parser.ParseException: Encountered " "(" "( "" at line 1, column 35.
Was expecting one of:
    <EOF> 
    "INTO" ...
    "FROM" ...
    "WHERE" ...
    "FOR" ...
    "GROUP" ...
    "HAVING" ...
    "START" ...
    "CONNECT" ...
    ";" ...
    "," ...
    "," ...
    "INTO" ...
    "FROM" ...
    "WHERE" ...
    "START" ...
    "CONNECT" ...
    "GROUP" ...
    "HAVING" ...
    "FOR" ...
    
	at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:15112)
	at net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:14968)
	at net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:90)
	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:52)
	... 47 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants