When executing a query with
.annotate(rank=Window(...))
I get the error django.db.utils.NotSupportedError: This backend does not support window expressions.
I am running
Django==3.0.3
django-mssql-backend==2.8.1
pyodbc==4.0.30
Exactly the same query used to work with previous version of django-pyodbc-azure and django 2.x
I just gave it a try: If in django-mssql-backend/sql_server/pyodbc/features.py I add the attribute supports_over_clause
class DatabaseFeatures(BaseDatabaseFeatures):
supports_over_clause = True
...
it works.
Was this just missed or do I oversee anything?