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

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

    XMLWordPrintable

    Details

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

      Description

      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?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              heiko.theissen Heiko Theissen
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: