Open jdbodyfelt opened 2 years ago
also running into this problem
changing the offending model to {{config(materialized="table")}}
rather than {{config(materialized="view")}}
works fine as no parenthesis are added.
obviously a table is not as useful as a view, but just figured it was worth adding more data points.
funnily enough, ommitting the leading and proceeding parenthesis from your model generates a working view.
select * from table_a ) union ( select * from table_b
Same here. Will this be fixed somewhere soon? The syntax in Mysql 5.7 should be as simple as. So the wrapping brackets must be removed.
create view [view_name] as select * from table
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...