Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-1307

Errors in Example 34: products with aggregated sales

    XMLWordPrintable

    Details

    • 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:

      [Proposed] [Optimistically Applied]

    • Proposal:
      Hide

      Update the context in the example as described.

      Show
      Update the context in the example as described.

      Description

      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) 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))",

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikep Michael Pizzo (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: