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

Add support for FIRST, LAST aggregation parsing. #877

Closed
mustafasrepo opened this issue May 10, 2023 · 0 comments · Fixed by #882
Closed

Add support for FIRST, LAST aggregation parsing. #877

mustafasrepo opened this issue May 10, 2023 · 0 comments · Fixed by #882

Comments

@mustafasrepo
Copy link
Contributor

When we run the query below currently, sqlparser cannot parse it

SELECT FIRST(x ORDER BY x) AS a FROM T

similarly, it cannot parse corresponding query with LAST either.
although it is not a standard feature, this function is very common and helpful. I would like to have support for these functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant