--使用 from_unixtime 和 unix_timestamp 將時間列轉化成想要的格式
--然后再Insert表,動態指定分區
insert overwrite table partition_user_table partition (dt) select id, account, name, create_time, from_unixtime(unix_timestamp(create_time,'yyyy/mm/dd'),'yyyymmdd') as dt from external_user_table;
posted on 2018-04-02 16:47
Ke 閱讀(547)
評論(0) 編輯 收藏 所屬分類:
hive