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

xattr metadata duplicated in result of query.

    XMLWordPrintable

Details

    • Bug
    • Resolution: User Error
    • Major
    • 7.0.0
    • 6.5.0
    • query
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      When executing a query to return the xattr using the following

      select meta().*, meta().xattrs._sync, * from `test2`
      where meta().id = '0afdcf50-6ad4-4b42-a954-a2593d33dcac';
      

      I see the _sync.xattr results twice, first at line 3, and then line 34.

      	[
          {
              "_sync": {
                  "cas": "0x0000118cb1530416",
                  "history": {
                      "channels": [
                          null
                      ],
                      "parents": [
                          -1
                      ],
                      "revs": [
                          "1-e56bae11610de9a8b6804158023df303fab94814"
                      ]
                  },
                  "recent_sequences": [
                      5
                  ],
                  "rev": "1-e56bae11610de9a8b6804158023df303fab94814",
                  "sequence": 5,
                  "time_saved": "2020-04-09T19:16:30.763394209-07:00",
                  "value_crc32c": "0x153429cb"
              },
              "cas": 1586484990765498368,
              "expiration": 0,
              "flags": 0,
              "id": "0afdcf50-6ad4-4b42-a954-a2593d33dcac",
              "test2": {
                  "name": "Couchbase",
                  "version": 7
              },
              "type": "json",
              "xattrs": {
                  "_sync": {
                      "cas": "0x0000118cb1530416",
                      "history": {
                          "channels": [
                              null
                          ],
                          "parents": [
                              -1
                          ],
                          "revs": [
                              "1-e56bae11610de9a8b6804158023df303fab94814"
                          ]
                      },
                      "recent_sequences": [
                          5
                      ],
                      "rev": "1-e56bae11610de9a8b6804158023df303fab94814",
                      "sequence": 5,
                      "time_saved": "2020-04-09T19:16:30.763394209-07:00",
                      "value_crc32c": "0x153429cb"
                  }
              }
          }
          ]
      

      Attachments

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

        Activity

          People

            kamini.jagtiani Kamini Jagtiani
            rohinton.kazak Rohinton Kazak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty