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

[CX] meta() function does not support type field as n1ql but also does not throw any error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • CBAS DP
    • CBAS DP
    • analytics
    • analytics version:193
    • Untriaged
    • Centos 64-bit
    • Unknown

    Description

      Query issued:
      SELECT distinct name FROM default_shadow WHERE META(default_shadow).`type` = "json";

      Result:
      curl -s --data pretty=true --data-urlencode statement@file2.txt http://172.23.107.182:8095/analytics/service
      {
      "requestID": "dceafdf2-814a-4170-8f84-0e608cd773be",
      "signature": "*",
      "results": [ ]
      ,
      "status": "success",
      "metrics":

      { "elapsedTime": "46.094561ms", "executionTime": "45.597679ms", "resultCount": "0", "resultSize": "0" }

      }

      This doesnt return any error for cbas.

      n1ql meta function has following fields:
      "$1":

      { "cas": 1475097795040575488, "flags": 4042322160, "id": "query-testemployee10153.1877827-0", "type": "json" }

      while cbas meta function has:
      "rev": 1,
      "cas": 1475016704135397376,
      "flags": -252645136,
      "lock": 0,
      "expiration": 0,
      "id": "query-testemployee99397.2740161-0",
      "seq": 1

      If type is not being supported as meta, then it should return an error.

      Attachments

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

        Activity

          People

            till Till Westmann
            Prerna.Manaktala Prerna Manaktala (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