Skip to content

Aggregation Operation in JSON Column #301

@Menda0

Description

@Menda0

Hi I am trying to execute the following query:

select((o.label,avg(o.properties["Output"])) for o in Object if o.repid.id == 2 and o.object_class.name == "Application Service")

However I an getting the following error:

Function 'AVG' expects argument of numeric type, got 'Json' in avg(o.properties['Throughput'])

I tried to execute an aggregation operation in non JSON columns with no problem.

Does pony orm not support aggregation operation in JSON columns or there is any way do solve this problem?

Regards,
Marco Mendão

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions