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
I've run into this issue a few times via sqlmesh format ... after commenting out a line using -- which contained a trailing comment (typically previously formatted by sqlmesh).
bigquery SQL doesn't seem to allow nested /* */ pairs so flags the second */ in the output as invalid.
Input (valid sql):
select
id,
foo,
-- bar, /* the thing */
from facts
output (invalid sql):
SELECT
`id`,
`foo`
/* bar, /* the thing */ */
FROM `facts`
The text was updated successfully, but these errors were encountered:
I'm using python3 -m sqlglot --read bigquery --write bigquery - < foo.sql.
I've run into this issue a few times via
sqlmesh format ...
after commenting out a line using--
which contained a trailing comment (typically previously formatted by sqlmesh).bigquery SQL doesn't seem to allow nested
/* */
pairs so flags the second*/
in the output as invalid.Input (valid sql):
output (invalid sql):
The text was updated successfully, but these errors were encountered: