how to write subquery and use “In” Clause in Hive

后端 未结 7 1786
滥情空心
滥情空心 2021-01-31 19:49

How can I use In clause in Hive I want to write something like this in Hive select x from y where y.z in (select distinct z from y) order by x; But I am not finding any way o

7条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 20:26

    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

提交回复
热议问题