随笔 - 6  文章 - 129  trackbacks - 0
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(14)

随笔档案(6)

文章分类(467)

文章档案(423)

相册

收藏夹(18)

JAVA

搜索

  •  

积分与排名

  • 积分 - 814461
  • 排名 - 49

最新评论

阅读排行榜

评论排行榜

--使用 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 阅读(527) 评论(0)  编辑  收藏 所属分类: hive

只有注册用户登录后才能发表评论。


网站导航: