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

New Function ARRAY_CONTAINS_ALL in N1QL

    XMLWordPrintable

Details

    Description

      Currently, the function ARRAY_CONTAINS supports a match of a single element in an array. If I need to check if an array is contained inside another array, the syntax ends up being awkward:

      ARRAY_LENGTH( ARRAY_INTERSECT( [1,2], [1,2,3,4,5])) = 2 

      Ideally, we should have a simpler function:

      ARRAY_CONTAINS_ALL([1,2], [1,2,3,4,5])

       

      Attachments

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

        Activity

          People

            ajay.bhullar Ajay Bhullar
            denis.rosa Denis Rosa
            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