Hive 报错:Error: Error while compiling statement: FAILED: ParseException line 1:7 Failed to recognize

编程入门 行业动态 更新时间:2024-10-18 12:21:55

执行hive SQL 语句“ select out from XXX ” 时报错如下:


Error: Error while compiling statement: FAILED: ParseException line 1:7 Failed to recognize predicate 'out'. Failed rule: 'identifier' in table or column identifier (state=42000,code=40000)

我的本意是取出我表里的out字段的值,该句bug在是指 out 是保留字,虽然我的表里的一列也叫 out,但不能直接执行 select out 字段,修改为如下语句:
select  `out`  from XXX

即在 out 两边加上反引号,问题解决~

 

更多推荐

Hive 报错:Error: Error while compiling statement: FAILED: ParseException line 1:7

本文发布于:2023-06-14 08:36:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1456725.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   compiling   statement   Hive   Error

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!