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

Geo Query doesn't work if geometry is missing

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • None
    • 2.0.1
    • None
    • Security Level: Public
    • None

    Description

      2015-05-05 11:32:39.631705
      _version_ = '2.0.1'

      File "/usr/local/lib/python2.7/site-packages/couchbase/views/iterator.py", line 116, in handle_rows
      yield self.rowclass(row['key'], row['value'], row['geometry'],
      KeyError: 'geometry'

      Spatial views can be non-geo data, such as parsing log files by date, as such geometry is optional but the python sdk errors if it is not provided.

      Here is an example of a non geo, spatial query, http://docs.couchbase.com/4.0/admin/Views/sv-example2.html

      Attachments

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

        Activity

          People

            mnunberg Mark Nunberg (Inactive)
            ianmccloy Ian McCloy (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