how to write subquery and use “In” Clause in Hive
According to https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Select: “Hive does not support IN, EXISTS or subqueries in the WHERE clause.” You might want to look at: https://issues.apache.org/jira/browse/HIVE-801 https://issues.apache.org/jira/browse/HIVE-1799