Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-9261

Add LEN() general purpose length function to query docs.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • Neo
    • None
    • None
    • DOC-2022-S4, DOC-2022-S5
    • 1

    Description

      Added function:

      LEN( <value> )

      The result is a number depending on the type of value passed in, for:

      • string - string length (equivalent to LENGTH())
      • object - field count (equivalent to OBJECT_LENGTH())
      • array - number of elements (equivalent to ARRAY_LENGTH())
      • binary - size of binary object
      • boolean - 1
      • number - the number of characters in the number's text representation
      • missing - missing
      • null - null
      • Anything not in the list - null

      Attachments

        Issue Links

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

          Activity

            People

              simon.dew Simon Dew
              Donald.haggart Donald Haggart
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty