Fixed #32169 -- Added distinct support to JSONBAgg.

This commit is contained in:
Artur Beltsov 2020-11-04 16:30:47 +05:00 committed by Mariusz Felisiak
parent c36075ac1d
commit 18c8ced81e
4 changed files with 25 additions and 2 deletions

View file

@ -114,10 +114,17 @@ General-purpose aggregation functions
``JSONBAgg``
------------
.. class:: JSONBAgg(expressions, filter=None, ordering=(), **extra)
.. class:: JSONBAgg(expressions, distinct=False, filter=None, ordering=(), **extra)
Returns the input values as a ``JSON`` array.
.. attribute:: distinct
.. versionadded:: 3.2
An optional boolean argument that determines if array values will be
distinct. Defaults to ``False``.
.. attribute:: ordering
.. versionadded:: 3.2