私はこのようなクエリ作成しようとしています:サブクエリでLATERAL VIEW OUTER EXPLODEの結果を使用するにはどうすればよいですか?
select * from tbl LATERAL VIEW OUTER explode(column) temp_tbl as the_col WHERE (the_col IN (select column from tbl2))
をし、それがこのエラーを与える:
Unsupported SubQuery Expression: Correlating expression cannot contain unqualified column references
私はthisの答えを見てにクエリを変更:
select * from tbl LATERAL VIEW OUTER explode(column) temp_tbl as the_col WHERE (tbl.the_col IN (select column from tbl2))
このエラーが発生しました:
FAILED: SemanticException Line XX:XX Invalid column reference 'the_col' in definition of SubQuery sq_1
ここでは何が起こっているのですか?