Does a filter segment followed by a key predicate make sense?

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Minor
    • V4.01_ERRATA01
    • Affects Version/s: V4.01_OS
    • Component/s: ABNF
    • None

      ABNF rules allow the production

      collectionNavNoCastExpr = filterExpr keyPredicate
      

      which enables things like

      Order('A')/Items/$filter(Product eq 'Sugar')(ItemNumber=2)
      

      Is the $filter redundant since a key predicate follows anyway? Or does this ensure that item #2 is returned only if its product is sugar?

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

              Created:
              Updated:
              Resolved: