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

Inconsistent lifted operators for $filter

    XMLWordPrintable

    Details

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

      [Applied]

      Description

      I didn't see any mention of lifted operators in the working drafts. We should define how each operator behaves when one (or both) operands is null.

      With that said, the V3 spec (section 2.2.3.6.1.1.5) is inconsistent with it's treatment of null:

      • For equality operators, null eq null is true and null eq <anything not null> is false (i.e. the result is true or false)
      • Any relational operators when compared with null are false (i.e. the result is true or false)
      • This implies that null ge null and null le null is false which is inconsistent with null eq null is true
      • Logical operators treat null as false (i.e. the result is true or false)
      • Unary operators are null if the operand is null (i.e. in the case of not, the result is true, false, or null)

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              matthew.borges Matthew Borges (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: