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

Improper error message is thrown while creating dataset using parameterized DDL

    XMLWordPrintable

Details

    • Untriaged
    • Centos 64-bit
    • 1
    • No

    Description

      Steps to reproduce -
      1) Execute following curl command to create dataset.

      curl --request POST 'http://10.112.205.104:8095/analytics/service' \
      --header 'Content-Type: application/x-www-form-urlencoded' \
      --header 'Accept: */*' \
      --header 'Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==' \
      --data-urlencode 'statement=create dataset x on `beer-sample` where geo.lat between $f and $t;' \
      --data-urlencode '$f="37"' \
      --data-urlencode '$t="40"'
      

      Following error is observed -

      {
          "requestID": "ea9f3908-97ab-42ce-bf68-b640a7c6314b",
          "signature": {
              "*": "*"
          },
          "errors": [
              {
                  "code": 24050,
                  "msg": "No value for parameter: $f (in line 1, at column 57)"
              }
          ],
          "status": "fatal",
          "metrics": {
              "elapsedTime": "52.124883ms",
              "executionTime": "49.911408ms",
              "resultCount": 0,
              "resultSize": 0,
              "processedObjects": 0,
              "errorCount": 1
          }
      }
      

      Attachments

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

        Activity

          People

            ali.alsuliman Ali Alsuliman
            umang.agrawal Umang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty