We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, we do not support the queries taking date or timestamp for range inside window frames. Following query
date
timestamp
SELECT COUNT(*) OVER (ORDER BY ts RANGE BETWEEN '1 DAY' PRECEDING AND '1 DAY' FOLLOWING) FROM t;
produces the error below:
ParserError("Expected literal int, found: INTERVAL")
Relevant section in the code, where window frame bounds are parsed can be found here.
sqlparser-rs/parser.rs at 6afd194e947cfd800376f424ff7c300ee385cd9e · sqlparser-rs/sqlparser-rs
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Support INTERVAL in window RANGE Queries
Currently, we do not support the queries taking
date
ortimestamp
for range inside window frames. Following queryproduces the error below:
ParserError("Expected literal int, found: INTERVAL")
Relevant section in the code, where window frame bounds are parsed can be found here.
sqlparser-rs/parser.rs at 6afd194e947cfd800376f424ff7c300ee385cd9e · sqlparser-rs/sqlparser-rs
The text was updated successfully, but these errors were encountered: