時間列轉化&&動態指定分區Insert數據
摘要: --使用 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 @
2018-04-02 16:47 Ke 閱讀(546) |
評論 (0) 編輯