Skip to content

How to do coalesce on aggregation? #293

@dekoza

Description

@dekoza

I want to annotate results with the last time a page was displayed and then sort in descendant order. Unfortunately when there is no such date I get None which messes the order by juping in front.
When I tried to use max(i.created) if i.created else datetime(1970,1,1) I got Expression is too complex to decompile error

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions