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

Ordering and select raw of subquery causes nil-dereference

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.6.2
    • 7.6.1
    • query
    • Docker image `couchbase/server:community-7.6.1`
    • Untriaged
    • Linux x86_64
    • 0
    • Yes

    Description

      Using a `SELECT RAW` in Combination with an `ORDER BY` clause on a subquery causes an internal error in within the query-engine.

       


      The Following Query:

      SELECT RAW event FROM (
       
        SELECT RAW { "date": NOW_MILLIS() }
       
      ) event
      ORDER BY event.date
      

       
      Results in the following result

      [
        {
          "code": 5001,
          "msg": "Panic: runtime error: invalid memory address or nil pointer dereference"
        }
      ]
      


       

      Attachments

        Issue Links

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

          Activity

            People

              pierre.regazzoni Pierre Regazzoni
              aki-ks Aki ks
              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