Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1021

META() does not serialize correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.2
    • Component/s: library
    • Labels:
      None

      Description

      A call like this using the META() function:

        var query = context.Query<Beer>().Select(p => N1Ql.Meta(p)).Take(1)
      

      returns the following JSON:

      {"cas":0.0,"flags":0,"id":null,"type":null}
      

      Note that the correct JSON document is being sent across the wire, so it must be something on the SDK or Linq side.

        Attachments

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

          Activity

          Hide
          jmorris Jeff Morris added a comment -

          Linq generated query: SELECT META(`Extent1`) FROM `beer-sample` as `Extent1` LIMIT 1

          cbq> SELECT META(`Extent1`) FROM `beer-sample` as `Extent1` LIMIT 1;
          {
              "requestID": "d3fe60fc-6742-49e3-8cf6-110669a040ef",
              "signature": {
                  "$1": "object"
              },
              "results": [
                  {
                      "$1": {
                          "cas": 1.4454516563845448e+18,
                          "flags": 0,
                          "id": "21st_amendment_brewery_cafe-563_stout",
                          "type": "json"
                      }
                  }
              ],
              "status": "success",
              "metrics": {
                  "elapsedTime": "52.771019ms",
                  "executionTime": "52.730494ms",
                  "resultCount": 1,
                  "resultSize": 214
              }
          }
          

          Show
          jmorris Jeff Morris added a comment - Linq generated query: SELECT META(`Extent1`) FROM `beer-sample` as `Extent1` LIMIT 1 cbq> SELECT META(`Extent1`) FROM `beer-sample` as `Extent1` LIMIT 1; { "requestID": "d3fe60fc-6742-49e3-8cf6-110669a040ef", "signature": { "$1": "object" }, "results": [ { "$1": { "cas": 1.4454516563845448e+18, "flags": 0, "id": "21st_amendment_brewery_cafe-563_stout", "type": "json" } } ], "status": "success", "metrics": { "elapsedTime": "52.771019ms", "executionTime": "52.730494ms", "resultCount": 1, "resultSize": 214 } }
          Show
          jmorris Jeff Morris added a comment - https://github.com/couchbaselabs/Linq2Couchbase/commit/ca03731f440792d251453c8a42cb72aee7126fbf

            People

            • Assignee:
              jmorris Jeff Morris
              Reporter:
              jmorris Jeff Morris
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.