Syntax

    1. mysql> set enable_vectorized_engine=true;
    2. +------+-----------+------------+
    3. | k1 | k2 | size(`k2`) |
    4. | 1 | [1, 2, 3] | 3 |
    5. | 2 | [] | 0 |
    6. | 3 | NULL | NULL |
    7. +------+-----------+------------+
    8. +------+-----------+-------------------+
    9. | k1 | k2 | cardinality(`k2`) |
    10. +------+-----------+-------------------+
    11. | 1 | [1, 2, 3] | 3 |
    12. | 2 | [] | 0 |