Skip to content

GroupConcat missing filter parameter #947

Open
@caramdache

Description

@caramdache

Description

Native Django aggregates support a filter parameter that allow a subset of expressions to be returned. For example:

.annotate(count=Count("expr", filter=filter_expr))

which generates the following SQL:

COUNT(DISTINCT CASE WHEN <filter_expr> THEN <expr> ELSE NULL END) as count

However the filter parameter is ignored today by GroupConcat and I'm not quite sure how to add it to the source code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions