#29317: filter keyword undocumented in PostgreSQL aggregate functions -------------------------------------+------------------------------------- Reporter: Matthew | Owner: nobody Pava | Type: | Status: new Cleanup/optimization | Component: | Version: Documentation | Severity: Normal | Keywords: aggregate Triage Stage: | Has patch: 0 Unreviewed | Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- The signature for all of the aggregate functions for PostgreSQL includes a `filter` keyword argument, but I can't figure out what it is used for based on the documentation alone: [https://docs.djangoproject.com/en/2.0/ref/contrib/postgres/aggregates/].
For what it's worth, I'm trying to filter out all of the empty values in an `ArrayAgg` expression, which seems to be a fairly common thing that one would want to do. Perhaps we could add an example to the documentation showing how that can be accomplished. I'm not sure right now if the `filter` keyword argument is the way to go. -- Ticket URL: <https://code.djangoproject.com/ticket/29317> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/049.e365c0b296615a0a76f90154bedf4cff%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.