zhangjun0x01 commented on issue #1231: URL: https://github.com/apache/incubator-paimon/issues/1231#issuecomment-1563693719
I try it in my computer,it is ok . could you provide more information? ``` Flink SQL> > CREATE CATALOG paimon_hive_catalog WITH ( > 'type' = 'paimon', > 'metastore' = 'hive', > 'table.type' = 'external', > 'uri' = 'thrift://localhost:9083', > 'warehouse' = 'hdfs://localhost/user/hive/warehouse' > ); [INFO] Execute statement succeed. Flink SQL> use catalog paimon_hive_catalog; [INFO] Execute statement succeed. Flink SQL> use zhangjun; [INFO] Execute statement succeed. Flink SQL> drop table mytable; [INFO] Execute statement succeed. Flink SQL> CREATE TABLE mytable ( > user_id BIGINT, > item_id BIGINT, > behavior STRING, > dt STRING, > hh STRING, > PRIMARY KEY (dt, hh, user_id) NOT ENFORCED > ) PARTITIONED BY (dt, hh); [INFO] Execute statement succeed. Flink SQL> alter table mytable add aaa string after dt; [INFO] Execute statement succeed. Flink SQL> desc mytable; +----------+--------+-------+----------------------+--------+-----------+ | name | type | null | key | extras | watermark | +----------+--------+-------+----------------------+--------+-----------+ | user_id | BIGINT | FALSE | PRI(dt, hh, user_id) | | | | item_id | BIGINT | TRUE | | | | | behavior | STRING | TRUE | | | | | dt | STRING | FALSE | PRI(dt, hh, user_id) | | | | aaa | STRING | TRUE | | | | | hh | STRING | FALSE | PRI(dt, hh, user_id) | | | +----------+--------+-------+----------------------+--------+-----------+ 6 rows in set Flink SQL> alter table mytable drop (aaa); [INFO] Execute statement succeed. Flink SQL> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
