INVALID_AGGREGATION_OP — unknown aggregation operator
cyoda-go version 0.8.4
errors.INVALID_AGGREGATION_OP
Section titled “errors.INVALID_AGGREGATION_OP”INVALID_AGGREGATION_OP — an aggregation’s op is not one of the supported operators.
SYNOPSIS
Section titled “SYNOPSIS”HTTP: 400 Bad Request. Retryable: no.
DESCRIPTION
Section titled “DESCRIPTION”Raised by POST /api/entity/stats/{entityName}/{modelVersion}/query. The supported operators are sum, avg, min, max and stdev, spelled lowercase. Anything else — including count, an uppercase spelling, or a typo — is rejected, and the message echoes the value that was sent.
There is no count operator because every bucket already carries count. stdev is the sample standard deviation (divisor n − 1) and is null when a bucket has fewer than two numeric samples.
SEE ALSO
Section titled “SEE ALSO”- errors
- crud
- errors.INVALID_AGGREGATION_FIELD
- errors.DUPLICATE_AGGREGATION_ALIAS
See also
Section titled “See also”cyoda help errors— Every error response from the Cyoda REST API carries a structurederrorCodein thepropertiesobject. Multiple codes may share the same HTTP status. Programmatic handling keys onerrorCode, not HTTP status.cyoda help crud— Entities are instances of models. Each entity has a UUID, a model reference (entityName,modelVersion), and a lifecycle state managed by the workflow engine. Creating an entity requires the referenced model to be inLOCKEDstate. All write operations run within a Cyoda transaction and return atransactionIdalongside the affected entity IDs.cyoda help errors INVALID_AGGREGATION_FIELD— Raised byPOST /api/entity/stats/{entityName}/{modelVersion}/query. An aggregationfieldobeys exactly the grammar agroupBypath does — a required$.leader followed by dot-separated segments of ASCII letters, digits,_and-, with no bracket-quoted access, array subscript or projection, recursive descent, whitespace or non-ASCII character. Seecyoda help errors INVALID_GROUP_BY_PATHfor the grammar and the rejected spellings; the message names the offending field and the reason.cyoda help errors DUPLICATE_AGGREGATION_ALIAS— Raised byPOST /api/entity/stats/{entityName}/{modelVersion}/query. Each bucket’saggregationsobject is keyed by the aggregation’sasalias, or — whenasis omitted — by a synthesized<op>_<field>with the leading$.stripped, so{"op":"sum","field":"$.amount"}becomessum_amount. Two aggregations that compute different things cannot share one key, because only one of the two values could be returned under it.
Raw formats
Section titled “Raw formats”/help/errors/invalid_aggregation_op.json— full descriptor (matchesGET /help/{topic}envelope)/help/errors/invalid_aggregation_op.md— body only