-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: V4.0_CS02
-
Fix Version/s: V4.0_CSD04
-
Component/s: Data Aggregation
-
Labels:None
-
Environment:
Applied
-
Proposal:
This problem occurs twice:
1.
The current text in 7.3 Custom Aggregates states that the dynamic property with the result of a custom aggregate “MUST always be in the same set as the original property.”
Example 61 following this statement puts the result of the custom aggregate Forecast into the nested Sales structure although the request uses a path expression:
GET ~/Products?$apply=groupby((Name), ... Sales/Forecast))
2.
The same statement appears in section 7.4 Aliasing. Here, it is not wrong, but may draw wrong conclusions , if it is applied to a variation of the request in example 64:
GET ~/Products?$apply=groupby((Name),aggregate(Sales/Amount with sum as Total))
Then, Total MUST be placed at the top result level.
Furthermore, we should clarify this semantics in the sentence from 3.1.1 Keyword as: "The introduced dynamic property is added to the type containing the original expression or custom aggregate. "