会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
chengdex
博客园
首页
新随笔
联系
订阅
管理
文章分类 -
Hive
Hive 根据身份证提取年龄、生日、性别
摘要:select identity_card ,if(LENGTH(identity_card)=18, cast(YEAR(current_timestamp())-CAST(SUBSTR(identity_card,7,4) as int) as int), 0) '年龄' ,case when length(identity_card) = 18 then concat_ws('-','2...
阅读全文
posted @
2018-12-21 18:29
chengdex
阅读(5255)
评论(0)
推荐(0)
Hive文本中的特殊字符处理\t\r\n
摘要:hive处理存储于json字段中的html文本,碰到特殊字符导致数据与字段错位
阅读全文
posted @
2018-12-20 12:00
chengdex
阅读(14526)
评论(0)
推荐(1)
公告