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

Crash when trying to serialize view "keys" parameter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.1
    • 4.0.0
    • library
    • None
    • 1
    • SDK22: Lambda + KV Range Scan

    Description

      The simplest view deployed at test/ByDoc

      function (doc, meta) {
        emit(meta.id, doc);
      }
      

      #!/usr/bin/python3
       
      import sys
       
      from couchbase.cluster import Cluster
      from couchbase.auth import PasswordAuthenticator
      from couchbase.bucket import ViewScanConsistency
      from couchbase.options import ViewOptions, ClusterOptions
      from couchbase.management.views import DesignDocumentNamespace
       
      pa = PasswordAuthenticator('Administrator', 'password')
      cluster = Cluster('couchbase://127.0.0.1', ClusterOptions(pa))
       
      bucket = cluster.bucket('default')
      collection = bucket.default_collection()
       
      result = bucket.view_query("test","ByDoc",ViewOptions(keys=["TestDoc_990999","TestDoc_999995"],namespace=DesignDocumentNamespace.PRODUCTION,scan_consistency=ViewScanConsistency.REQUEST_PLUS))
       
      for row in result.rows():
          print("Key: {} ID: {} row: {}".format(row.key, row.id, row))
      
      

      Everything is good if I remove:

      keys=["TestDoc_990999","TestDoc_999995"],
      

      Attachments

        For Gerrit Dashboard: PYCBC-1336
        # Subject Branch Project Status CR V

        Activity

          People

            jared.casey Jared Casey
            avsej Sergey Avseyev
            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