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

CREATE OR REPLACE function fails with function not found

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Yes

    Description

      This is regression since last weekly run on 3358.

      Following now fails:

       cbq> CREATE OR REPLACE FUNCTION func1(...) { (args[0] * 9/5) + 32 }
         > ;
      {
          "requestID": "db948bf9-28da-4373-90e1-c4fe0eb21244",
          "signature": null,
          "results": [
          ],
          "errors": [
              {
                  "code": 10101,
                  "msg": "Function 'func1' not found"
              }
          ],
          "status": "errors",
          "metrics": {
              "elapsedTime": "4.295042ms",
              "executionTime": "4.09655ms",
              "resultCount": 0,
              "resultSize": 0,
              "serviceLoad": 6,
              "errorCount": 1
          }
      }
      

      This works:

       cbq> CREATE FUNCTION func1(...) { (args[0] * 9/5) + 32 };
      {
          "requestID": "b70d409a-ddd9-4182-bc5f-91a71c83a9dd",
          "signature": null,
          "results": [
          ],
          "status": "success",
          "metrics": {
              "elapsedTime": "33.375239ms",
              "executionTime": "33.180197ms",
              "resultCount": 0,
              "resultSize": 0,
              "serviceLoad": 6
          }
      }
      

       

      Might be side effect from recent change for MB-52910?

       

      Attachments

        Activity

          People

            pierre.regazzoni Pierre Regazzoni
            pierre.regazzoni Pierre Regazzoni
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty