同一段SQL,在MYSQL中测试通过,挪到大数据执行报错:

org.apache.spark.sql.AnalysisException:
expression 'xxx' is neither present in the group by, nor is it an aggregate function.
Add to group by or wrap in first(or first_value)...

大数据查询遇到这个错误,解决方法已经提示。就是在xxx外面包裹first()函数。

至于原因:

https://www.jianshu.com/p/c131657a5813

相关文章:

  • 2021-08-04
  • 2021-07-04
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
猜你喜欢
  • 2022-12-23
  • 2021-11-12
  • 2021-11-27
  • 2021-12-07
  • 2022-12-23
  • 2021-11-14
  • 2021-07-26
相关资源
相似解决方案