Open mht14208 opened 2 years ago
Flink SQL> CREATE TABLE pv (
id VARCHAR, name VARCHAR, addr VARCHAR, PRIMARY KEY (id) NOT ENFORCED ) WITH ( 'connector.type' = 'phoenix', 'connector.url' = 'jdbc:phoenix:node01:2181', 'connector.table' = 'student', 'connector.driver' = 'org.apache.phoenix.jdbc.PhoenixDriver', 'connector.username' = '', 'connector.password' = '', 'phoenix.schema.isnamespacemappingenabled' = 'true', 'phoenix.schema.mapsystemtablestonamespace' = 'true', 'connector.write.flush.max-rows' = '1' ); [INFO] Execute statement succeed.
id VARCHAR, name VARCHAR, addr VARCHAR,
PRIMARY KEY (id) NOT ENFORCED ) WITH ( 'connector.type' = 'phoenix', 'connector.url' = 'jdbc:phoenix:node01:2181', 'connector.table' = 'student', 'connector.driver' = 'org.apache.phoenix.jdbc.PhoenixDriver', 'connector.username' = '', 'connector.password' = '', 'phoenix.schema.isnamespacemappingenabled' = 'true', 'phoenix.schema.mapsystemtablestonamespace' = 'true', 'connector.write.flush.max-rows' = '1' ); [INFO] Execute statement succeed.
Flink SQL> select * from pv; [ERROR] Could not execute SQL statement. Reason: org.apache.flink.table.client.gateway.SqlExecutionException: Could not execute SQL statement.
Flink SQL> CREATE TABLE pv (
Flink SQL> select * from pv; [ERROR] Could not execute SQL statement. Reason: org.apache.flink.table.client.gateway.SqlExecutionException: Could not execute SQL statement.