Hive的collect_list是否已订购? [英] Is Hive's collect_list ordered?
本文介绍了Hive的collect_list是否已订购?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此页说collect_list:
This page says of collect_list:
Returns a list of objects with duplicates.
该列表是否有序?例如,查询结果的顺序是什么?
Is that list ordered? For example, the order of the query results?
推荐答案
内置 collect_list $ c $即使您通过
第一次执行顺序(即使它确保顺序,确保顺序),c>也不保证被排序,这样做是浪费时间)。只需使用 brickhouse collect ;它确保元素的订购。
built-in collect_list
isn't guaranteed to be ordered, even if you do an order by
first (even if it did ensure order, doing it this way is a waste of time). Just use brickhouse collect; it ensures the elements are ordered.
这篇关于Hive的collect_list是否已订购?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文