Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
Aggregate functions now support the SQL standard FILTER clause, letting you filter which rows are included in an aggregation without writing a CASE expression.
-
Q1/2026 Server Development, Q1/2026 Server Maintenance, Q2/2026 Server Development, Q3/2026 Server Maintenance, Q3/2026 Server Development, Q4/2026 Server Maintenance
Description
SQL:2003 introduced the FILTER clause, which extends aggregate functions with a WHERE clause.
This is supported by PostgreSQL, SQLite and a MySQL extension.
See https://modern-sql.com/feature/filter#conforming-alternatives for details.
Attachments
Issue Links
- blocks
-
MDBF-690 ArrayAgg (and related functions) are missing from Django
-
- Open
-
- is part of
-
MDEV-35388 PostgreSQL-compatible syntax
-
- Open
-
-
MDEV-41087 prepare 13.2 preview
-
- In Progress
-
- relates to
-
MCOL-6534 Compatibility of the FILTER clause (added in MDEV-24943) with MCS select handler
-
- In Testing
-
-
MDEV-40689 Wrong result: BIT_AND/BIT_OR/BIT_XOR in WINDOW functions over a frame containing NULL
-
- Open
-
- links to