首页 > 其他 > 详细

Hive 中的分号问题

时间:2016-08-23 19:00:27      阅读:415      评论:0      收藏:0      [点我收藏+]

1.  hive表中有一列值,是以 分号 ; 为分隔符连接存储的

1470047164;1470047628;1470049068;1470048978;1470048922;1470047658;1470047628;1470047628;1470047778;

2. 使用sql语句在HUE里面直接以 ; 分隔查询并无异常。

select test.thedate
,time_stamp1
from
(select thedate
,time_stamp
from my_table
where dt=‘2016-08-10‘
)test
lateral view explode(split(time_stamp,‘;‘)) t as time_stamp1
limit 10;

 

Error: Error while compiling statement: FAILED: ParseException line 23:39 cannot recognize input near ‘<EOF>‘ ‘<EOF>‘ ‘<EOF>‘ in select expression (state=42000,code=40000)

http://www.linuxidc.com/Linux/2013-10/91573.htm

Hive 中的分号问题

原文:http://www.cnblogs.com/skyEva/p/5800503.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!