Navigation path from instance to lambda operator

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

      Closed 2023-10-18

    • 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.
    • Show
      OData-URL https://github.com/oasis-tcs/odata-specs/pull/102

      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
      

       

            Assignee:
            handl
            Reporter:
            heiko.theissen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: