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

Syntax error, incorrect syntax near 'over' - while using ROW_NUMBER #858

Open
anechaud opened this issue Jul 3, 2021 · 0 comments
Open

Comments

@anechaud
Copy link

anechaud commented Jul 3, 2021

Seems row_number(), rank() etc sql functions are not supported by azure cosmos db sql api yet.
I am trying to fire the below query

SELECT ROW_NUMBER() OVER(ORDER BY ZZWH_CODE) AS rn FROM c

and getting error :

Failed to query item for container contianer_name:
Gateway Failed to Retrieve Query Plan: Message: {"errors":[{"severity":"Error","location":{"start":20,"end":24},"code":"SC1001","message":"Syntax error, incorrect syntax near 'over'."}]}

What could have gone wrong?

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

No branches or pull requests

1 participant