Otherwise, it will fail with "cannot determine type of empty array". For example, an empty string vec will be converted to `ARRAY []` but PG needs `ARRAY[]::TEXT[]` or things like that for understanding the type.