0

The message pop up like "Function min(jsonb) is not unique".

Aggregation function like count() in return clause does not work.

When I try implicit type cast, functions are detected in multiple.

Is there any workaround?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Kevin Lee
  • 121
  • 7

1 Answers1

0

Please include the query that throws the error. Meanwhile I hope this helps...

create ({name: 'John', age: 25})
create ({name: 'Rose', age: 22})
create ({name: 'Mary'})
create ({name: 'Jane', age: 33});

match(n) return max(n.age::"numeric");
match(n) return min(n.age::"numeric"), avg(n.age::"numeric"), stDev(n.age::"numeric");
match(n) return sum(n.age::"numeric"), collect(n.age) as "list of ages", count(n.age);

Thanks, Joe

Joe
  • 36
  • 3