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

CTE with system table return empty result

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.1.0
    • 7.1.0
    • query
    • None
    • 7.1.0-2506
    • Untriaged
    • 1
    • Yes

    Description

      To repro:

      • create default bucket
      • create primary index on default
      • run CTE query: with a as (2010) select a from system:indexes;

      On 7.1 we get empty result:

      cbq> with a as (2010) select a from system:indexes;
      {
          "requestID": "efe7852e-5078-42c9-8086-8db79e04ccbd",
          "signature": {
              "a": "json"
          },
          "results": [
          {}
          ],
          "status": "success",
          "metrics": {
              "elapsedTime": "18.94789ms",
              "executionTime": "18.756378ms",
              "resultCount": 1,
              "resultSize": 2,
              "serviceLoad": 6
          }
      }
       

      on 7.0.1-5981, we get:

      cbq> with a as (2010) select a from system:indexes;
      {
          "requestID": "c293ef73-32a0-4e01-bbf3-e34ad460e69d",
          "signature": {
              "a": "json"
          },
          "results": [
          {
              "a": 2010
          }
          ],
          "status": "success",
          "metrics": {
              "elapsedTime": "27.159543ms",
              "executionTime": "26.922412ms",
              "resultCount": 1,
              "resultSize": 25,
              "serviceLoad": 6
          }
      }
       

      Attachments

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

        Activity

          People

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