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

N1QL build index expressions should mention array of identifiers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • Mad Hatter
    • Mad Hatter
    • query
    • DOC-2019-S04-Feb22
    • 1

    Description

      Not really a bug but want to make sure this is seen. For mad hatter we have a new build index function that allows one to pass in strings, identifiers and arrays of strings for the index names. We should make special note that arrays of identifiers are not allowed. This could cause some confusion if a developer is trying to write a script that uses the new build index syntax.

       

      Allowed:

      BUILD index on default('ix1', 'ix2', 'ix3')

      BUILD index on default(ix1, ix2, ix3)

      BUILD index on default(['ix1', 'ix2', 'ix3'])

      any mix of the previous

      Not allowed:

      BUILD index on default([ix1, ix2, ix3]) --> array of identifiers (not strings)

      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
              korrigan.clark Korrigan Clark (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty