【问题标题】:Presto group by distinct values in hive arrayPresto 按 hive 数组中的不同值分组
【发布时间】:2014-02-19 22:49:10
【问题描述】:

在 hive 中,您可以对 Hive 数组中的不同值进行分组,如下所示:

SELECT i, count(distinct cookieID) as unique_visitor, count(*) as impressions FROM table LATERAL VIEW explode(interests) interestTable AS i GROUP BY i;

如何在 Presto 中实现同样的效果?

不必与 group by 在一起,只需与 Hive 中相同的结果(希望更快)就可以了。

干杯

【问题讨论】:

    标签: sql hive presto


    【解决方案1】:

    目前尚不支持,但已在路线图中。

    【讨论】:

    • 猜猜我会等待那个功能然后:)
    猜你喜欢
    • 2019-12-18
    • 2019-11-08
    • 2018-10-23
    • 2017-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-18
    相关资源
    最近更新 更多