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
sqlfmt encountered an error: There was a problem formatting your query that caused the safety check to fail. Please open an issue. Raw query was 24 tokens; formatted query was 24 tokens. First mismatching token at position 2: raw: TokenType.FMT_OFF; result: TokenType.NAME.
To Reproduce
create or replace row access policy foo
on foo.bar.baz
grant to ('user1', 'user2')
filter using ( foo = 'bar' )
Expected behavior
Should no-op as an unsupported ddl. But it doesn't. Adding -- fmt: off does not help.
Actual behavior
Safety check error.
Additional context
What is the output of sqlfmt --version? 0.21.3
What is the output of pip list (or pipx list if you installed using pipx)? with our without black installed.
The text was updated successfully, but these errors were encountered:
Describe the bug
To Reproduce
Expected behavior
Should no-op as an unsupported ddl. But it doesn't. Adding
-- fmt: off
does not help.Actual behavior
Safety check error.
Additional context
What is the output of
sqlfmt --version
? 0.21.3What is the output of
pip list
(orpipx list
if you installed using pipx)? with our without black installed.The text was updated successfully, but these errors were encountered: