hive中的错误(missing EOF at )
来源:互联网 发布:python 文本相似度 编辑:程序博客网 时间:2024/05/16 04:51
select cid as c from daily_conn where cid not in (select c from top_channel_log where v<>'5.8.7' and (objlabel='1' or objlabel is null or objlabel='13557')) and v<>'5.8.7' ;
这条语句执行时出现了下面这条错误
Error: Error while compiling statement: FAILED: SemanticException [Error 10249]: Line 1:38 Unsupported SubQuery Expression 'cid': Correlating expression cannot contain unqualified column references. (state=42000,code=10249)
找了好半天,甚至改写了sql,变成如下形式
select cid from daily_conn where v<>'5.8.7' except (select c from top_channel_log where v<>'5.8.7' and (objlabel=1 or objlabel is null or objlabel=13557)) as b;
Error: Error while compiling statement: FAILED: ParseException line 1:86 missing EOF at 'except' near '20170425' (state=42000,code=40000)
出现了这样的错误,最终改成了
select cid from daily_conn left outer join top_channel_log on daily_conn.cid=top_channel_log.c where daily_conn.v<>'5.8.7' and daily_conn.p_date>=20170423 and daily_conn.p_date<=20170425 and top_channel_log.v<>'5.8.7' and (top_channel_log.objlabel=1 or top_channel_log.objlabel is null or top_channel_log.objlabel=13557);
造成这样的原因是:本人使用的是hive1.3的版本,1.3的版本中支持not in 但是不支持not in的子查询;不支持except的使用。
- hive中的错误(missing EOF at )
- hive报错 ParseException line 10:7 missing EOF at 'by' near 'group'
- FAILED: ParseException line 1:12 missing TABLE at 'ext_emp' near '<EOF>'
- hive报lzo Premature EOF from inputStream错误
- "syntax error at EOF"
- Jforum中搜索错误:jforum Cannot parse '': Encountered "EOF" at line 1, column 0.
- 导入Myeclipse的Java项目,JS文件编译错误: Multiple markers at this line - Missing semicolon - Missing....
- The tomcat server configuration at /sever/tomcat v7.0 localhost-config is missing 错误
- Python EOF 的错误
- 503 EOF错误
- ngx.exit,ngx.eof,ngx.timer.at
- c中的eof
- C语言中的EOF
- C语言中的EOF
- C中的EOF
- shell 中的EOF使用
- shell中的EOF用法
- shell中的EOF用法
- JavaScript点击事件加卸载事件完美版!
- 最短路径(邻接表)-Dijkstra算法
- session共享 之 session入库
- java的三大特征封装,继承,多态的理解
- linux学习记录
- hive中的错误(missing EOF at )
- 自定义打印方法
- StringBuffer与StringBuilder的区别
- loading的实现(css3)
- Spring JPA 复杂条件查询
- IntelliJ IDEA
- jQuery快速高效制作网页交互特效第五章课后4
- Linux下安装Redis并添加PHP扩展(自己测试了没有问题)
- MarkDown 语法手册