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

          常用鏈接

          留言簿(14)

          隨筆檔案(6)

          文章分類(467)

          文章檔案(423)

          相冊

          收藏夾(18)

          JAVA

          搜索

          •  

          積分與排名

          • 積分 - 827203
          • 排名 - 49

          最新評論

          閱讀排行榜

          評論排行榜

          --使用 from_unixtime 和 unix_timestamp 將時(shí)間列轉(zhuǎn)化成想要的格式
          --然后再Insert表,動態(tài)指定分區(qū)

          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 閱讀(554) 評論(0)  編輯  收藏 所屬分類: hive
          主站蜘蛛池模板: 馆陶县| 北辰区| 阜新| 囊谦县| 卓资县| 清远市| 天等县| 中牟县| 五莲县| 右玉县| 宜城市| 定兴县| 本溪| 余干县| 汉沽区| 桃园县| 万山特区| 津市市| 承德市| 浦城县| 峨山| 汝城县| 诸暨市| 武清区| 环江| 通道| 江达县| 时尚| 钟山县| 襄城县| 闽清县| 青阳县| 富阳市| 威信县| 洱源县| 长春市| 罗城| 旅游| 阳曲县| 蕉岭县| 隆回县|