-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
union_relations macro unable to union relations with ARRAY on Postgres #857
Comments
Just ran into the same for a |
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 |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
This is still an issue |
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
.The text was updated successfully, but these errors were encountered: