Closed chriskathumbi closed 11 months ago
Please provide a runnable reproduction like GitHub repo.
This should be reported to https://github.com/sql-formatter-org/sql-formatter instead.
cc @nene
And it seems we are outdated now, sql-formatter
v13 has been released, PR welcome to upgrade it and test your failing case.
Templating is not directly supported in SQL Formatter, a workaround is to use paramTypes config option.
Unable to format SQL: Error: Parse error: Unexpected "{env}_s3_datalake.{". This is for parameterized SQL to query multiple tables like:
SELECT *, current_date - interval {interval} {period} FROM {database_name}.{table_name}
It seems to fail due to the use of
'{' , '}'
Using' ` '
doesn't help due to some dialects not supporting it Is it possible to add char ignore or add a custom sql dialect for this sort of query?