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

"Range" in frame clauses #404

Closed
tconbeer opened this issue Apr 14, 2023 · 1 comment · Fixed by #406
Closed

"Range" in frame clauses #404

tconbeer opened this issue Apr 14, 2023 · 1 comment · Fixed by #406
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@tconbeer
Copy link
Owner

Describe the bug

"range between ..." is valid syntax to define a frame for a window function, but we only support "rows between"
Expected behavior

max(_sdc_batched_at) over (
    partition by {{ unique_column }}
    order by _sdc_batched_at 
    range between unbounded preceding and unbounded following
)

Actual behavior

max(_sdc_batched_at) over (
    partition by {{ unique_column }}
    order by
        _sdc_batched_at range
        between unbounded preceding and unbounded following
)

Additional context
What is the output of sqlfmt --version?
0.17.1

@tconbeer tconbeer added bug Something isn't working good first issue Good for newcomers labels Apr 14, 2023
@tconbeer
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant