| Age | Commit message (Collapse) | Author |
|
JSONBAgg results.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
|
This deprecates forcing a return value for ArrayAgg, JSONBAgg, and
StringAgg when there are no rows in the query. Now that we have a
``default`` argument for aggregates, we want to revert to returning the
default of ``None`` which most aggregate functions return and leave it
up to the user to decide what they want to be returned by default.
|
|
Thanks to Simon Charette and Adam Johnson for the reviews.
|
|
Co-Authored-By: Simon Charette <charette.s@gmail.com>
|
|
EmptyQuerySets and used subTest().
|
|
|
|
Use of QuerySet.none() will cause the EmptyQuerySet aggregation
optimisation to be used. Change the test to be implemented like the
other tests for empty results in this file.
|
|
This is probably a hangover from when the aggregate function was
originally called JSONAgg during development.
|
|
|
|
JSONField key transforms.
Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd.
Thanks Igor Jerosimić for the report.
|
|
|
|
aggregate functions.
|
|
|
|
|
|
|
|
in Subquery.
|
|
|
|
used in Subquery.
|
|
ArrayAgg and StringAgg.
|
|
|
|
|
|
|
|
|
|
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda
because try/except performs better.
|
|
|
|
|
|
Thanks to Christian von Roques for the report.
|
|
Thanks Tim Graham for review.
|
|
|
|
|
|
Refs #23879.
|
|
|