Skip to content

[LIQ] Extend with group by and having with aggregators - #1843

Merged
zefhemel merged 8 commits into
silverbulletmd:mainfrom
mjf:liq-add-having-and-group-by
Feb 25, 2026
Merged

[LIQ] Extend with group by and having with aggregators#1843
zefhemel merged 8 commits into
silverbulletmd:mainfrom
mjf:liq-add-having-and-group-by

Conversation

@mjf

@mjf mjf commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Also update documentation with extensive examples and add some parser tests.

Note: make generate JS files included.

Also update documentation with extensive examples and add some parser
tests.

Note: `make generate` JS files included.

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
@mjf
mjf marked this pull request as draft February 20, 2026 12:43
Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
@mjf mjf changed the title [LIQ] Extend with group by and having support [LIQ] Extend with group by and having with aggregators Feb 24, 2026
@mjf
mjf marked this pull request as ready for review February 24, 2026 08:08

@zefhemel zefhemel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall I really like this, I think this adds a lot of power tot he LIQ sub-language. My main concern is about how aggregator functions become a "special" citizen. I'd really prefer this if would not be required, but the whole thing is not clear enough in my head to be able to judge if this is fundamentally possible. I put a comment on this topic in the aggregates.ts file

If you can find a way where aggregate functions just become Lua tables adhering to a particular interface, I'd much prefer that than to introduce a magic new thing only used/valid in the context of LIQ.

Comment thread client/space_lua/stdlib/string.ts
Comment thread website/Space Lua/Lua Integrated Query/Aggregating.md
Comment thread website/Space Lua/Lua Integrated Query/Aggregating.md Outdated
Comment thread website/Space Lua/Lua Integrated Query/Aggregating.md Outdated
Comment thread website/Space Lua/Lua Integrated Query/Grouping.md Outdated
Comment thread website/Space Lua/Lua Integrated Query.md Outdated
Comment thread client/space_lua/aggregates.ts
mjf added 4 commits February 25, 2026 09:55
Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
…de block type to `lua`

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
@mjf
mjf requested a review from zefhemel February 25, 2026 09:23
@zefhemel
zefhemel merged commit 13c61eb into silverbulletmd:main Feb 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants