Open pcreux opened 11 months ago
Just ran into the same for a jsonb[]
column.
I also had the same problem
Has anyone figured out a solution for this? When I'm trying to union two tables with nested arrays, I'm facing the same issue
Turns out this issue has been around for at least 4 years
I tried using column_override
but I'm still getting the error.
Describe the bug
Calling
union_relations
on relations with an array column generates invalid SQL:Steps to reproduce
union_relations
on that table:Expected results
Valid SQL:
Actual results
Invalid SQL:
System information
The contents of your
packages.yml
file:Which database are you using dbt with?
The output of
dbt --version
:Are you interested in contributing the fix?
The code casts using
dbt.type_string()
orcol.data_type
. I don't know if there's another attribute that would returnthe_type[]
instead ofARRAY
.