Syntax
mysql> set enable_vectorized_engine=true;
mysql> select k1,k2,k3 from collect_test order by k1;
| k1 | k2 | k3 |
+------+------------+-------+
| 2 | 2022-07-04 | NULL |
| 2 | 2022-07-04 | hello |
| 3 | NULL | world |
| 3 | NULL | world |
+------+------------+-------+
+------+--------------------------+--------------------+
| k1 | collect_list(`k2`) | collect_list(`k3`) |
+------+--------------------------+--------------------+
| 1 | [2022-07-05] | [hello] |
| 2 | [2022-07-04, 2022-07-04] | [hello] |
| 3 | NULL | [world, world] |