Syntax
mysql> select *,array_difference(k2) from array_type_table;
+------+-----------------------------+---------------------------------+
+------+-----------------------------+---------------------------------+
| 1 | [NULL] | [NULL] |
| 2 | [1, 2, 3] | [0, 1, 1] |
| 4 | [0, 1, 2, 3, NULL, 4, 6] | [0, 1, 1, 1, NULL, NULL, 2] |
| 5 | [1, 2, 3, 4, 5, 4, 3, 2, 1] | [0, 1, 1, 1, 1, -1, -1, -1, -1] |
+------+-----------------------------+---------------------------------+