4 主意:collect_set 只能返回不重复的集合 若要返回带重复的要用collect_list 组内拼接排序 select occur_period , sort_array(collect_list(num_jdz_2)) from qhtest.num_zws_update_test group by occur_period
4 主意:collect_set 只能返回不重复的集合 若要返回带重复的要用collect_list 组内拼接排序 select occur_period , sort_array(collect_list(num_jdz_2)) from qhtest.num_zws_update_test group by occur_period