Syntax

    1. mysql> set enable_vectorized_engine=true;
    2. mysql> select k1,k2,k3 from collect_test order by k1;
    3. | k1 | k2 | k3 |
    4. +------+------------+-------+
    5. | 2 | 2022-07-04 | NULL |
    6. | 2 | 2022-07-04 | hello |
    7. | 3 | NULL | world |
    8. | 3 | NULL | world |
    9. +------+------------+-------+
    10. +------+--------------------------+--------------------+
    11. | k1 | collect_list(`k2`) | collect_list(`k3`) |
    12. +------+--------------------------+--------------------+
    13. | 1 | [2022-07-05] | [hello] |
    14. | 2 | [2022-07-04, 2022-07-04] | [hello] |
    15. | 3 | NULL | [world, world] |