You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support references to aggregated fields from SELECT in ORDERBY and HAVING (#1094)
* Add unit tests that reproduce bug with references to fields from select clause.
* ci: apply automated fixes
* Handle refs to fields from select clause in replaceAggregatesByRefs
* ci: apply automated fixes
* Expose selected fields on a special namespace
* ci: apply automated fixes
* Fix rebase issue
* ci: apply automated fixes
* Rename __select_results to to avoid the additional transformation
* ci: apply automated fixes
* Fix types in tests
* Add selected fields as a selected namespace on the type of orderBy/having clauses
* ci: apply automated fixes
* Add unit tests for functional having clause referencing fields from select
* Fix type of having clause
* ci: apply automated fixes
* Update docs
* Changeset
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/guides/live-queries.md
+33-4Lines changed: 33 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1108,10 +1108,19 @@ having(
1108
1108
```
1109
1109
1110
1110
**Parameters:**
1111
-
-`condition` - A callback function that receives the aggregated row object and returns a boolean expression
1111
+
-`condition` - A callback function that receives table references (and `$selected` if the query contains a `select()` clause) and returns a boolean expression
0 commit comments