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

N1QL array slices should include defaults for start and finish

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Major
    • 7.1.0
    • 5.5.0
    • query

    Description

      The array slice operator takes a start and an end index, like this: [start:end]. In Go and other languages, these indexes are optional, with sensible defaults. You can include one, the other, both, or neither.

      https://tour.golang.org/moretypes/10

      Currently in N1QL we require both indexes to be provided. We should allow them to be omitted.

      This would be a very good first project for someone new to the query engine. It is well defined, not too big, and introduces them to our parser, algebra representation, and expression code.

      Attachments

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

        Activity

          People

            Sitaram.Vemulapalli Sitaram Vemulapalli
            johan.larson Johan Larson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty