此查询的语法是否有任何错误,该查询在其他行中查找具有多个值的唯一值?
Select Distinct Ss.`cd`, Ss.`cd`
From nit.assrr As Ss
Join (
Select `cd`
From nit.assrr
Group By `cd`
Having Count(Distinct `cd`) > 1
) As Y
On Ss.`cd` = Y.`cd`
我收到此错误:
[Cloudera]HiveJDBCDriver 处理查询/语句时出错。
错误代码:2,SQL 状态:处理语句时出错:失败:执行错误,从 org.apache.hadoop.hive.ql.exec.mr.MapRedTask 返回代码 2,查询:.. 我的查询