【问题标题】:Inequality join in hive不平等加入蜂巢
【发布时间】:2016-08-10 12:12:25
【问题描述】:

我知道 hive 不支持不等连接,请您帮我获得以下解决方案。

select * from A a join B b on a.id=b.id and

a.date

多谢提前。

【问题讨论】:

    标签: apache hive


    【解决方案1】:

    不平等加入支持尚不可用,但怎么样:

    select * from A a join B b on a.id=b.id where  
    a.date < b.date;
    

    【讨论】:

    • 当您没有像 id 这样的公共字段并且您只想加入日期不等式时,您会怎么做?这可能吗:select * from A a join B b where a.date &lt; b.date;?
    • @NurShomik 我也很想知道,但似乎这在一段时间内是一个悬而未决的问题
    猜你喜欢
    • 2019-02-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-20
    • 2018-12-21
    • 1970-01-01
    相关资源
    最近更新 更多