随笔 - 6  文章 - 129  trackbacks - 0
<2025年6月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

常用链接

留言簿(14)

随笔档案(6)

文章分类(467)

文章档案(423)

相册

收藏夹(18)

JAVA

搜索

  •  

积分与排名

  • 积分 - 827086
  • 排名 - 49

最新评论

阅读排行榜

评论排行榜

hive
时间列转化&&动态指定分区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 阅读(554) | 评论 (0)  编辑