Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1040

Analytics metadata are not represented by objects.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Major
    • None
    • 3.0.5
    • library
    • None
    • 1

    Description

      If you do a query, and ask for metrics, you can do something like this:

      result = cluster.query("SELECT * FROM `beer-sample` where type = 'brewery' and name = 'Kona Brewing'", QueryOptions(metrics=True))
      t = result.metadata().metrics().execution_time()
      

      and t is a timedelta.

      However, analytics queries don't represent the metadata as an object, so there is no corresponding metrics() call. Nor is there a corresponding metrics object to use, etc...

      This is the issue in CBSC-8974.

      At one time I think this returned the QueryMetaData and QueryMetrics which is ok. But maybe something changed? This is not RFC-compliant, and doesn't match the docs. Of course, the docs are wrong too - note CamelCase. There is a separate ticket coming for that.

      Attachments

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

        Activity

          People

            Ellis.Breen Ellis Breen
            david.kelly David Kelly (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