Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support BigQuery array type declarations #212

Closed
tconbeer opened this issue Jul 18, 2022 · 0 comments
Closed

Support BigQuery array type declarations #212

tconbeer opened this issue Jul 18, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@tconbeer
Copy link
Owner

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 tconbeer added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Jul 18, 2022
@tconbeer tconbeer added this to the 0.12.0 milestone Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant