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

Sample query may be wrong

    XMLWordPrintable

Details

    Description

      I believe that in this query, the bucket name, tweets, would have to be in backticks.

      For example

      curl http://localhost:8093/query/service -d "statement=SELECT name from \`travel-sample\`;"
      {
      "requestID": "deeae57c-d628-4f0d-af8f-057921ad4ea7",
      "errors": [

      { "code": 4000, "msg": "No primary index on keyspace travel-sample. Use CREATE PRIMARY INDEX to create one." }

      ],
      "status": "fatal",
      "metrics":

      { "elapsedTime": "10.354394ms", "executionTime": "10.286432ms", "resultCount": 0, "resultSize": 0, "errorCount": 1 }

      }

      Attachments

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

        Activity

          People

            amarantha.kulkarni Amarantha Kulkarni (Inactive)
            docsite-collector Docs Site Collector
            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