Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-28960

IFNAN should return null if first expression is missing and second expression is null. Missing expression case in not handled.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 6.5.0
    • 5.5.0
    • analytics

    • Enterprise Edition 5.5.0 build 2325
    • Untriaged
    • No
    • CX Sprint 114, CX Sprint 115, CX Sprint 116, CX Sprint 117, CX Sprint 118, CX Sprint 119, CX Sprint 120, CX Sprint 121

    Description

      document:

      {
        "key": "val",
        "arr": [
          1,
          2
        ]
      }
      

      query:

      IFNAN(arr[2],arr[1])
      


      output:

      CBAS:
      [
        {}
      ]
      

      N1QL:
      [
        {
          "$1": 2
        }
      ]
      

      Missing field case is not handled.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tanzeem.ahmed Tanzeem Ahmed (Inactive)
              ritesh.agarwal Ritesh Agarwal
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty