test-sql-script-hive.sql 409 B

123456789101112131415161718
  1. CREATE TABLE pokes
  2. (
  3. foo INT,
  4. bar STRING
  5. );
  6. create table if not exists t_account
  7. (
  8. id bigint,
  9. sex tinyint COMMENT '性别',
  10. name String COMMENT '姓名',
  11. create_time timestamp,
  12. primary key(id) disable novalidate
  13. ) COMMENT '用户表'
  14. partitioned by (year string)
  15. clustered by (id) into 2 buckets
  16. row format delimited fields terminated by '\t'
  17. stored as orc TBLPROPERTIES('transactional'='true');