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

Explicitly note support for collection-valued navigation/complex properties in property paths in aggregate/groupby

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • 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:
      Hide

      Add to section 3.1 Transformation aggregate (insertions surrounded by *):
      An aggregate expression may be

      • an expression valid in a $filter system query option on the input set that results in a simple value, e.g. the path to an aggregatable property, with a specified aggregation method,
      • * an aggregatable property, with a specified aggregation method, that can be reached via a path consisting of a sequence of navigation properties, complex properties and complex collection properties. *
        [...]

      Update of section 3.10.1 Simple Grouping (insertions surrounded by *):
      In its simplest form the first parameter of groupby specifies the grouping properties, a comma-separated list of one or more single-valued property paths (paths ending in a single-valued primitive, complex, or navigation property) that is enclosed in parentheses. * A path may consist of a sequence of navigation properties, complex properties and complex collection properties.*

      Show
      Add to section 3.1 Transformation aggregate (insertions surrounded by *): An aggregate expression may be an expression valid in a $filter system query option on the input set that results in a simple value, e.g. the path to an aggregatable property, with a specified aggregation method, * an aggregatable property, with a specified aggregation method, that can be reached via a path consisting of a sequence of navigation properties, complex properties and complex collection properties. * [...] Update of section 3.10.1 Simple Grouping (insertions surrounded by *): In its simplest form the first parameter of groupby specifies the grouping properties, a comma-separated list of one or more single-valued property paths (paths ending in a single-valued primitive, complex, or navigation property) that is enclosed in parentheses. * A path may consist of a sequence of navigation properties, complex properties and complex collection properties.*
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-abnf/pull/13

      Description

      It is intended to support aggregation of property values reached via paths that may involve collection-valued navigation properties (see example 53). Likewise, it is intended to support grouping by properties reached via paths that may involve collection-valued navigation properties (see example 54).

      So far, these possibilities are mentioned only by examples, but should be described explicitly in the prose text.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gerald.krause1 Gerald Krause
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: