欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Hive建表

程序员文章站 2022-07-14 15:31:25
...
CREATE EXTERNAL TABLE dwh_app_logins_push_status (
    uid STRING,
    user_id STRING,
    euid STRING,
    imei STRING,
    idfa STRING,
    mac STRING,
    client STRING,
    day_now_diff_one_before STRING,
    day_one_diff_two_before STRING,
    rl_last STRING,
    rl STRING
)
PARTITIONED BY(p_day BIGINT)
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe'
STORED AS RCFILE LOCATION '/user/hive/warehouse/dg/bigtables/dwh_app_logins_push_status';`
相关标签: hive