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

Analytics Query Options does not Work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Major
    • None
    • 3.2.7, 4.0.0
    • None
    • None
    • 1

    Description

      Logs

      1. Code
        result = cluster.analytics_query(
        "SELECT * from `travel-sample`.inventory.airline LIMIT 1;",
        AnalyticsOptions(timeout=timedelta(seconds=120)),
        )
      2. Error
        Traceback (most recent call last):
        File "/Users/nithishraghunandan/Code/translation_model_demo/experiments/analytics_conn.py", line 22, in <module>
        result = cluster.analytics_query(
        File "/Users/nithishraghunandan/.virtualenvs/translation/lib/python3.9/site-packages/couchbase/cluster.py", line 885, in analytics_query
        opt.to_query_object(statement, *opts, **kwargs),
        File "/Users/nithishraghunandan/.virtualenvs/translation/lib/python3.9/site-packages/couchbase/options.py", line 353, in to_query_object
        setattr(query, target, transform(v))
        TypeError: 'member_descriptor' object is not callable
        Traceback (most recent call last):
        File "/Users/nithishraghunandan/Code/translation_model_demo/experiments/analytics_conn.py", line 23, in <module>
        result = cluster.analytics_query(
        File "/Users/nithishraghunandan/.virtualenvs/translation/lib/python3.9/site-packages/couchbase/cluster.py", line 466, in analytics_query
        query = AnalyticsQuery.create_query_object(statement,
        File "/Users/nithishraghunandan/.virtualenvs/translation/lib/python3.9/site-packages/couchbase/logic/analytics.py", line 341, in create_query_object
        setattr(query, target, transform(v))
        TypeError: 'member_descriptor' object is not callable

      Attachments

        Issue Links

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

          Activity

            People

              jared.casey Jared Casey
              nithish.raghunandanan Nithish Raghunandanan
              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