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

[CX] Arrays of objects cannot be parsed as the top level entity in a file

    XMLWordPrintable

Details

    Description

      Support an array of objects in JSON files. For example,

      [{"field1": "value1", "field2": "value2"}, {"field1": "value1", "field2": "value2"}, ...]

      and

      [
        {"field1": "value1", "field2": "value2"},
        {"field1": "value1", "field2": "value2"},
        ...
      ]

      This should behave exactly as if the file was:

      {"field1": "value1", "field2": "value2"}
      {"field1": "value1", "field2": "value2"}
      ....

      Attachments

        Issue Links

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

          Activity

            ali.alsuliman Ali Alsuliman added a comment - - edited

            Ritam Sharma, this needs to be verified.

            • create json files like in the description.
            • create an external dataset pointing to these files
            • query the dataset
            • verify it succeeds

            Also, verify the following:

            • create a json file with an array of objects + non-objects, e.g. [{}, "value", {}]
            • create an external dataset pointing to this file
            • query the dataset
            • verify it fails
            ali.alsuliman Ali Alsuliman added a comment - - edited Ritam Sharma , this needs to be verified. create json files like in the description. create an external dataset pointing to these files query the dataset verify it succeeds Also, verify the following: create a json file with an array of objects + non-objects, e.g. [{}, "value", {}] create an external dataset pointing to this file query the dataset verify it fails
            umang.agrawal Umang added a comment -

            verified with Cb server build 6.6.0-4861

            umang.agrawal Umang added a comment - verified with Cb server build 6.6.0-4861

            People

              umang.agrawal Umang
              till Till Westmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty