Apache Phoenix Create statement as select (from)
问题 I am trying to create a new table from an existing structure in Phoenix. Is there a CREATE as Select statement in Phoenix. I am trying and they are failing with the below exception. Any suggestions here are welcome. Thanks in advance. CREATE TABLE TEST AS (SELECT * FROM TEST_2 WHERE 1 =2); org.apache.phoenix.exception.PhoenixParserException: ERROR 601 (42P00): Syntax error. Encountered "AS" at line 1, column 14. at org.apache.phoenix.exception.PhoenixParserException.newException