CASE statement aternalives are ignored in aggregations, seems a bug
The foo() function bellow shows the problem, never do the ELSE in the CASE statement. The foo_null() is the same function, changing only the returning value.
The foo() function bellow shows the problem, never do the ELSE in the CASE statement. The foo_null() is the same function, changing only the returning value.