#30665: Add DISTINCT support for Avg, Sum, StdDev, and Variance aggregates.
-------------------------------------+-------------------------------------
     Reporter:  Étienne Beaulé       |                    Owner:  Étienne
                                     |  Beaulé
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Étienne Beaulé):

 Must disagree, felixxm. Neither `StdDev` nor `Variance` is in scope for
 this task as using the `DISTINCT` keyword on these aggregates is not as
 widely supported by SQL backends (such as Oracle). Supporting these would
 require more involved work. Some discussion was had about using
 `check_expression_support()` in
 [https://github.com/django/django/pull/9174 GH9174] but was dropped.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30665#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.c08bf06dcb3b293ef07aff58ba95b4eb%40djangoproject.com.

Reply via email to