原文:Hive:FAILED: SemanticException [Error 10025]: Line 2:39 Expression not in GROUP BY key ''chip''

使用Hive有时会出现这样的错误:FAILED: SemanticException Error : Line : Expression not in GROUP BY key chip 是因为在 Group by 子句中,Select 查询的列,要么需要是 Group by 中的列,要么得是用聚合函数 比如 sum count 等 加工过的列,不支持直接引用非 Group by 的列 ...

2021-05-25 17:28 0 365 推荐指数:

查看详情

SemanticException [Error 10025]

Hive 报错 FAILED: SemanticException [Error 10025]: Line 2:35 Expression not in GROUP BY key 'ct_url' 解决:在hql中,要在select..group by..中要展示某个字段,就必须对这个字段进行 ...

Wed Sep 16 19:26:00 CST 2020 0 1296
hive 运行sql报错Expression Not In Group By Key

案例: mysql运行结果: hive提示:Semantic Exception: Line 1:24 Expression not in GROUP BY key 'su' (state=42000,code=40000) 原因:1.Hive不允许直接 ...

Mon Mar 15 23:34:00 CST 2021 0 1532
Hive 报错SemanticException Error in parsing

以下sql执行时报错SemanticException Error in parsing 报错信息: 英文翻译过来是语义解析错误, 检查了下是在hql中别名后面的.不小心写成了,导致报错。 正确写法: ...

Tue Nov 05 02:48:00 CST 2019 0 696
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM