Skip to content

Accept WINDOW clause after QUALIFY when parsing #1248

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

Merged
merged 2 commits into from
May 3, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented May 3, 2024

This PR is based on #1218 from @iffyio which needed to have conflicts resolved.

I merged up to main, and fixed conflicts, but I don't have permissions push directly to the upstream branch https://github.com/validio-io/sqlparser-rs/tree/window-qualify-ordering so I made a new one

Closes #1218

Description from that PR:

The positioning of QUALIFY and WINDOW clauses differ between dialects.
BigQuery requires that WINDOW clauses come after QUALIFY which fails on the parser as a result.
This updates the parser to accept the clauses in either order.

iffyio and others added 2 commits April 14, 2024 09:52
BigQuery requires that WINDOW clauses come after QUALIFY which the
parser currently does not support. This updates the parser to
accept the clauses in either order.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8942947164

Details

  • 28 of 28 (100.0%) changed or added relevant lines in 3 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 89.212%

Files with Coverage Reduction New Missed Lines %
src/lib.rs 2 11.78%
Totals Coverage Status
Change from base Build 8911586285: 0.02%
Covered Lines: 24280
Relevant Lines: 27216

💛 - Coveralls

@alamb alamb merged commit 8e64b73 into apache:main May 3, 2024
10 checks passed
@alamb alamb deleted the window-qualify-ordering branch May 3, 2024 18:28
JichaoS pushed a commit to luabase/sqlparser-rs that referenced this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants