1. mysql> set enable_vectorized_engine = true
    2. mysql> select e1 from (select 1 k1) as t lateral view explode([1,2,3]) tmp1 as e1;
    3. +------+
    4. | e1 |
    5. +------+
    6. | 1 |
    7. | 2 |
    8. | 3 |
    9. +------+
    10. mysql> select e1 from (select 1 k1) as t lateral view explode_outer(null) tmp1 as e1;
    11. +------+
    12. | e1 |
    13. +------+
    14. | NULL |
    15. +------+
    16. mysql> select e1 from (select 1 k1) as t lateral view explode([]) tmp1 as e1;
    17. Empty set (0.010 sec)
    18. mysql> select e1 from (select 1 k1) as t lateral view explode([null,1,null]) tmp1 as e1;
    19. +------+
    20. | e1 |
    21. | NULL |
    22. | 1 |
    23. | NULL |
    24. +------+
    25. mysql> select e1 from (select 1 k1) as t lateral view explode_outer([null,1,null]) tmp1 as e1;
    26. +------+
    27. | e1 |
    28. +------+
    29. | NULL |
    30. | 1 |
    31. | NULL |
    32. +------+