Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-6942

Spatial views return debug information and wrong number of total_rows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta
    • Fix Version/s: 2.0-beta-2
    • Component/s: view-engine
    • Security Level: Public
    • Labels:
      None
    • Environment:
      Current checkout

      Description

      When you query a spatial view, e.g:

      curl -X GET 'http://cato:9500/default/_design/dev_foo/_spatial/bar'

      The result contain a "node" key, which should only be the case when you use debug=true.

      The results also always return total_rows=0 (not sure if that ever worked

        Issue Links

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

          Activity

          Hide
          kzeller kzeller added a comment -

          For geo/spatial indexes, which are experimental
          features in Couchbase 2.0, we had
          erroneously returned a 'node' key in the result set which is
          debug information. This is now fixed.

          Show
          kzeller kzeller added a comment - For geo/spatial indexes, which are experimental features in Couchbase 2.0, we had erroneously returned a 'node' key in the result set which is debug information. This is now fixed.
          Hide
          vmx Volker Mische added a comment -

          This is not fully correct. The "node" key is separate from the wrong number of "total_rows". Let me explain it a bit.
          The "node" key was a bug and is now fully gone.
          The "total_rows" is always 0 for spatial views. This is still the case and won't be changed in the near future.

          Show
          vmx Volker Mische added a comment - This is not fully correct. The "node" key is separate from the wrong number of "total_rows". Let me explain it a bit. The "node" key was a bug and is now fully gone. The "total_rows" is always 0 for spatial views. This is still the case and won't be changed in the near future.
          Hide
          kzeller kzeller added a comment -

          Added to RN: For geo/spatial indexes, which are experimental
          features in Couchbase 2.0, we had
          returned the wrong number of rows in a result set
          by including the node key. We now exclude this key.

          Show
          kzeller kzeller added a comment - Added to RN: For geo/spatial indexes, which are experimental features in Couchbase 2.0, we had returned the wrong number of rows in a result set by including the node key. We now exclude this key.
          Hide
          vmx Volker Mische added a comment -
          Show
          vmx Volker Mische added a comment - Here's a fix: http://review.couchbase.org/21717
          Hide
          vmx Volker Mische added a comment -

          Spatial views don't return a total_rows property, but it is needed for the view merging. Hence the output it simply "0".

          Show
          vmx Volker Mische added a comment - Spatial views don't return a total_rows property, but it is needed for the view merging. Hence the output it simply "0".

            People

            • Assignee:
              vmx Volker Mische
              Reporter:
              vmx Volker Mische
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes