Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
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
{{ message }}
ormar-orm
/
ormar
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
98
Star
1.8k
Code
Issues
31
Pull requests
7
Discussions
Actions
Projects
Security and quality
2
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
feat: aggregate annotations (annotate / having / order_by)
- #1742
#1742
Open
collerek
wants to merge 17 commits into
master
ormar-orm/ormar:master
from
feat/aggregation-annotations
ormar-orm/ormar:feat/aggregation-annotations
Copy head branch name to clipboard
Conversation
Commits
17
(17)
Checks
Files changed
Open
feat: aggregate annotations (annotate / having / order_by)
#1742
collerek
wants to merge 17 commits into
master
ormar-orm/ormar:master
from
feat/aggregation-annotations
ormar-orm/ormar:feat/aggregation-annotations
Copy head branch name to clipboard
Commits
Commits on Jul 14, 2026
feat: add aggregate expression value objects (Count/Sum/Avg/Min/Max)
collerek
committed
409bd0b
View commit details
Copy full SHA for 409bd0b
Browse repository at this point
feat: annotate() with pre-grouped derived-table aggregate join
collerek
committed
31840ba
View commit details
Copy full SHA for 31840ba
Browse repository at this point
fix: guard Count(distinct) for column-less counts and drop unused helpers
collerek
committed
02d38ae
View commit details
Copy full SHA for 02d38ae
Browse repository at this point
feat: order_by an annotated aggregate (closes #566)
collerek
committed
d036aaa
View commit details
Copy full SHA for d036aaa
Browse repository at this point
fix: dialect-aware quoting for order_by on annotation labels
collerek
committed
6c0f2b8
View commit details
Copy full SHA for 6c0f2b8
Browse repository at this point
feat: having() filtering on annotated aggregates
collerek
committed
0a76419
View commit details
Copy full SHA for 0a76419
Browse repository at this point
test: sum/avg/min/max annotations and null-for-empty semantics
collerek
committed
70cb88b
View commit details
Copy full SHA for 70cb88b
Browse repository at this point
feat: Count() over many-to-many relations
collerek
committed
8e224ac
View commit details
Copy full SHA for 8e224ac
Browse repository at this point
fix: reject qualified aggregates over many-to-many relations
collerek
committed
13e33d4
View commit details
Copy full SHA for 13e33d4
Browse repository at this point
feat: annotations compose with select_related and pagination
collerek
committed
6879723
View commit details
Copy full SHA for 6879723
Browse repository at this point
test: discriminating assertions for annotation ordering under pagination; dedup dialect quoting
collerek
committed
e5dacd9
View commit details
Copy full SHA for e5dacd9
Browse repository at this point
test: annotation count independent of outer relation filter
collerek
committed
33f81e2
View commit details
Copy full SHA for 33f81e2
Browse repository at this point
Commits on Jul 15, 2026
test: also assert annotation independence with a scalar filter (single row)
collerek
committed
6b4cde3
View commit details
Copy full SHA for 6b4cde3
Browse repository at this point
test: annotate values() without field subset returns annotation
Show description for f49e47b
collerek
committed
f49e47b
View commit details
Copy full SHA for f49e47b
Browse repository at this point
docs: document aggregate annotations (annotate/having/order_by)
Show description for 844fd94
collerek
committed
844fd94
View commit details
Copy full SHA for 844fd94
Browse repository at this point
fix: apply having in pagination subquery and reject colliding/unknown annotation names
collerek
committed
7de7b80
View commit details
Copy full SHA for 7de7b80
Browse repository at this point
Commits on Aug 31, 2026
Merge branch 'master' into feat/aggregation-annotations
collerek
authored
5cb0c88
View commit details
Copy full SHA for 5cb0c88
Browse repository at this point
You can’t perform that action at this time.