Hive 的collect_set使用詳解

有這麼一需求,在hive中求出一個數據表中在某天內首次登錄的人;能夠藉助collect_set來處理sql:html select count(a.id) from (select id,collect_set(time) as t from t_action_login where time<='20150906' group by id) as a where size(a.t)=1 and
相關文章
相關標籤/搜索