You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A consistent failure on view creation within MySQL5.x, especially those containing UNION, throws
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'union
A traceback to /target/run shows the offending *.sql of form:
create view schema.table__dbt_tmp as (
(
select *
from schema.table_1A
)
union
(
select *
from schema.table_1B
)
);
Removing the first parenthetical grouping, so that the query reads
create view schema.table__dbt_tmp as
(
select *
from schema.table_1A
)
union
(
select *
from schema.table_1B
)
results in a working query. Likely a final parsing step just needs amending, but not certain yet where that is in the adapter stack...
The text was updated successfully, but these errors were encountered:
Describe the bug
A consistent failure on view creation within MySQL5.x, especially those containing
UNION
, throwsA traceback to
/target/run
shows the offending *.sql of form:Removing the first parenthetical grouping, so that the query reads
results in a working query. Likely a final parsing step just needs amending, but not certain yet where that is in the adapter stack...
The text was updated successfully, but these errors were encountered: