sqlfmt icon indicating copy to clipboard operation
sqlfmt copied to clipboard

Support BigQuery array type declarations

Open tconbeer opened this issue 3 years ago • 0 comments

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?

tconbeer avatar Jul 18 '22 16:07 tconbeer