Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.18.1
Description
CREATE TABLE WITH (foo) AS (SELECT * FROM bar LIMIT 5)
The above statement throws "Caused by: java.lang.AssertionError: not a query: " exception.
A workaround is to wrap the query with CTE.
CREATE TABLE WITH (foo) AS (WITH R AS (SELECT * FROM bar LIMIT 5) SELECT * FROM R)