[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-1307) Errors in Example 34: products with aggregated sales
Michael Pizzo created ODATA-1307:
------------------------------------
Summary: Errors in Example 34: products with aggregated sales
Key: ODATA-1307
URL: https://issues.oasis-open.org/browse/ODATA-1307
Project: OASIS Open Data Protocol (OData) TC
Issue Type: Bug
Components: Data Aggregation
Affects Versions: V4.0_CS02
Environment: [Proposed]Â[Optimistically Applied]
Reporter: Michael Pizzo
Fix For: V4.0_CSD04
Example 34 in â3.17 Evaluating $apply as an Expand Optionâ ([http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/cs02/odata-data-aggregation-ext-v4.0-cs02.html#_Toc435016591|https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdocs.oasis-open.org%2Fodata%2Fodata-data-aggregation-ext%2Fv4.0%2Fcs02%2Fodata-data-aggregation-ext-v4.0-cs02.html%23_Toc435016591&data=04%7C01%7Cmikep%40microsoft.com%7C69c4d0d17ebe430ca45d08d6e9dfa7ff%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636953544148230845%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C-1&sdata=SelBZPN1ChRzKcLeJWO4aaap5ZizR3iCopsZmtFXM%2Bo%3D&reserved=0]) says Âthat for following query:
GET Products?$expand=Sales($apply=aggregate(Amount with sum as Total))
Â@odata.context in result should look like:
"@odata.context":"$metadata#Poducts(Salees(Amount)",
ÂThere appear to be a few errors with the context:
* Typos in Products and Sales
* Amount instead of Total that is part of output
* Missing closing parens
ÂI believe the context should be:
"@odata.context":"$metadata#Products(Sales(Total))",
--
This message was sent by Atlassian JIRA
(v7.7.2#77003)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]