sqlfmt
sqlfmt copied to clipboard
Support BigQuery array type declarations
Describe the bug
BigQuery uses angle brackets for type declarations. We treat it like lt gt, with extra whitespace (and worst-case, line breaks like operators)
To Reproduce
SELECT ARRAY<FLOAT64>[1, 2, 3] as floats
Expected behavior
select array<float64> [1, 2, 3] as floats
Actual behavior
select array < float64 > [1, 2, 3] as floats
Additional context
What is the output of sqlfmt --version?