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

Navigation path from instance to lambda operator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.01_OS
    • Fix Version/s: V4.01_ERRATA01
    • Component/s: URL Conventions
    • Labels:
      None
    • Environment:

      Closed 2023-10-18

    • Proposal:
      Hide

      The argument of a lambda operator is a case-sensitive lambda variable name followed by a colon (:) and a Boolean expression that uses the lambda variable name to refer to properties of the instance or of members of the collection identified by the navigation path.

      ...

      Other path expressions in the Boolean expression neither prefixed with the lambda variable nor $it are evaluated in the scope of the instance or members of the collection instances at the origin of the navigation path prepended to the lambda operator.

      Show
      The argument of a lambda operator is a case-sensitive lambda variable name followed by a colon (:) and a Boolean expression that uses the lambda variable name to refer to properties of the instance or of members of the collection identified by the navigation path. ... Other path expressions in the Boolean expression neither prefixed with the lambda variable nor $it are evaluated in the scope of the instance or members of the collection instances at the origin of the navigation path prepended to the lambda operator.
    • Resolution:
      Show
      OData-URL https://github.com/oasis-tcs/odata-specs/pull/102

      Description

      The section on lambda operators states:

      Other path expressions in the Boolean expression neither prefixed with the lambda variable nor $it are evaluated in the scope of the collection instances at the origin of the navigation path prepended to the lambda operator.

      But the navigation path does not necessarily originate in a collection, it can also be an instance, for example

      Products('Sugar')?$compute=Sales/any(p:p/Amount lt MinSalesVolume) as LongTail
      

       

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              heiko.theissen Heiko Theissen
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: