Closed jredd closed 7 years ago
It is not supported by redshift itself, maybe you can use DISTINCT with a nested query to achieve what you want.
This doesn't seem to be an issue with django-redshift-backend and it's also not viable -- or even possible -- to interpret distinct on
into distinct
+ subquery. 😞
postgres backend on Django supports "SELECT DISTINCT ON" and other backends don't.
I couldn't find information that "DISTINCT ON" is not supported, but it seems that it doesn't actually support it. http://docs.aws.amazon.com/redshift/latest/dg/c_unsupported-postgresql-features.html
For this reason I will explicitly implement unsupported with django redshift backend.
It is not supported by redshift itself, maybe you can use DISTINCT with a nested query to achieve what you want.
No its possible for multiple columns.
I could have sworn that distinct was possible...
https://docs.aws.amazon.com/redshift/latest/dg/r_DISTINCT_examples.html
In one of my views I need to call distinct on my query but I'm receiving this when I hit the django end point