-
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:
Example 55:
GET ~/Customers?$apply=groupby((Country,Sales/Product/Name))
The example result does not contain an entry for country France. The example data contains a customer in France that does not have any sales.
The prose text before the example states expansion "in a left-outer-join fashion".
This would suggest that a result row is missing:
{ "@odata.id": null, "Country": "France", "Sales": [ { "Product":
{ "Name": null }} ] }
This would be consistent with both the left-outer-join statement and the URL conventions for path expressions where properties of related entities are treated as null if no entity is related:
- the left-outer join would produce a single Sales row containing only null values, including the related product and its name
- this would create a ("France",null) group during aggregation
- folding back into the original shape would create the additional entry