不支持的子查询表达式:关联表达式不能包含不合格的列引用 [英] Unsupported SubQuery Expression : Correlating expression cannot contain unqualified column references
本文介绍了不支持的子查询表达式:关联表达式不能包含不合格的列引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hive
以下查询失败: 选择一个, b,c从t1开始,其中a(0,100)AND b in(从b 2选择b
,其中d> 2 GROUP BY 1)LIMIT 1;
架构:
t1(a,b,c)
t2(b,d,e)
错误日志:
不支持的子查询表达式'b':关联表达式不能
包含非限定列引用。 p>
什么是相关表达式?什么是不合格的列引用?并可以在这里概括错误。
解决方案
您可以找到有相同问题的人这里和相应的 JIRA ticket 。
基于这些答案,我建议您尝试:
从t1中选择一个a,b,c,其中一个in(0,100)AND t1.b in(从b选择b
其中d> 2 GROUP BY 1)LIMIT 1;
In Hive
the following query fails :
Select a,b,c from t1 where a in (0,100) AND b in (select b from t2
where d>2 GROUP BY 1 ) LIMIT 1;
Schema :
t1(a,b,c)
t2(b,d,e)
Error log :
Unsupported SubQuery Expression 'b': Correlating expression cannot contain unqualified column references.
What is correlating expression? what are unqualified column references ? and can you generalize the error here ..
解决方案
You can find someone having the same problem here and the corresponding JIRA ticket.
Based on those answers, I would advise you to try :
Select a,b,c from t1 where a in (0,100) AND t1.b in (select b from t2
where d>2 GROUP BY 1 ) LIMIT 1;
这篇关于不支持的子查询表达式:关联表达式不能包含不合格的列引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文