Merge branch 'main' into liq-implement-offset

This commit is contained in:
Matouš Jan Fialka
2026-03-11 18:49:29 +01:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -3105,4 +3105,4 @@ do
]]
assertEquals(#r, 3)
assertEquals(r[1].name, "Carol")
end
end
@@ -44,6 +44,13 @@ If an aggregate function call is used for projection (`select`), the general syn
See [[Space Lua/Lua Integrated Query/Aggregating]] for details.
Aggregate functions support an optional intra-aggregate `order by` and/or `filter` clause:
<aggregate>(<expression> [order by <expr> [asc|desc] [nulls {first|last}], ...])
<aggregate>(<expression> ...) filter(where <condition>)
These can be combined. See [[Space Lua/Lua Integrated Query/Aggregating]] for details.
LIQ operates on any Lua collection.
For instance, to sort a list of numbers in descending order: