Syntax

    1. mysql> set enable_vectorized_engine=true;
    2. mysql> select array_with_constant(2, "hello");
    3. +---------------------------------+
    4. +---------------------------------+
    5. | ['hello', 'hello'] |
    6. 1 row in set (0.04 sec)
    7. mysql> select array_with_constant(3, 12345);
    8. +-------------------------------+
    9. | array_with_constant(3, 12345) |
    10. +-------------------------------+
    11. 1 row in set (0.01 sec)
    12. mysql> select array_with_constant(3, null);
    13. +------------------------------+
    14. | array_with_constant(3, NULL) |
    15. +------------------------------+
    16. | [NULL, NULL, NULL] |