GeezerVison is showing github.com — Redshift MATERIALIZED VIEW with AUTO REFRESH is not supported · Issue #1684 · JSQLParser/JSqlParser
Redshift MATERIALIZED VIEW with AUTO REFRESH is not supported #1684
Description
Using the "AUTO REFRESH" clause for a materialized view in Redshift is not supported by JSqlParser.
Trying to parse a statement like this:
CREATE MATERIALIZED VIEW AUTO REFRESH YES foo AS SELECT * FROM bar
results in:
net.sf.jsqlparser.JSQLParserException: Encountered unexpected token: "CREATE" "CREATE"
at line 1, column 1.
Was expecting one of:
"("
"ALTER"
"CALL"
"COMMENT"
"COMMIT"
"DECLARE"
"DELETE"
"DESCRIBE"
"DROP"
"EXEC"
"EXECUTE"
"EXPLAIN"
"GRANT"
"INSERT"
"MERGE"
"PURGE"
"RENAME"
"RESET"
"ROLLBACK"
"SAVEPOINT"
"SET"
"SHOW"
"TRUNCATE"
"UPDATE"
"UPSERT"
"USE"
"VALUES"
"WITH"
<K_SELECT>
at app//net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:190)
at app//net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:63)
at app//net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:38)
... 86 more
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "CREATE" "CREATE"
at line 1, column 1.
With the AUTO REFRESH YES clause removed the statement is parsed just fine.
Activity
wumpz commented on Dec 10, 2022
That's right? Any chance you provide a PR or sponsor this feature?
added 3 commits that reference this issue
on Dec 11, 2022This issue will close once commit 3086e6a is merged into the 'master' branch.3086e6a This issue will close once commit 3ce274c is merged into the 'master' branch.3ce274c This issue will close once commit 747152a is merged into the 'master' branch.747152a zaza commented on Dec 11, 2022
ContributorAuthor
More actions
This is the PR with an attempt to fix this, see #1691
Let me know if there are any other changes you would like to see included.
added a commit that references this issue
on Jan 30, 2023This issue will close once commit 1c8d8da is merged into the 'master' branch.1c8d8da added a commit that references this issue
on Mar 9, 2023This issue will close once commit adeed53 is merged into the 'master' branch.adeed53 added a commit that references this issue
on Mar 21, 2023This issue will close once commit 31ef1aa is merged into the 'master' branch.31ef1aa added a commit that references this issue
on Apr 27, 2023This issue will close once commit a312dcd is merged into the 'master' branch.a312dcd added a commit that references this issue
on Jun 1, 2023This issue will close once commit 41b6fce is merged into the 'master' branch.41b6fce added a commit that references this issue
on Jun 15, 2023This issue will close once commit a815f5f is merged into the 'master' branch.a815f5f added a commit that references this issue
on Jun 27, 2023This issue will close once commit c79dfff is merged into the 'master' branch.c79dfff
Metadata
Metadata
Development
No branches or pull requestsIssue actions