Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-3274

Nested values should be skipped when replaced with an external embedded value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.9
    • 0.9.9
    • RT - Runtime

    Description

      DDL:

      CREATE TYPE TestType AS {
      };
      
      CREATE EXTERNAL DATASET Name(TestType) USING %adapter% (
          %template%,
          ("container"="playground"),
          ("definition"="external-filter/embed/name/{name:string}"),
          ("embed-filter-values" = "true"),
          ("format"="json")
      );

       

      Sample data in external-filter/embed/name/Jones:

      {"id": 1, "name": {"first": "Mike", "last": "Jones"}, "department": "accounting"}
      {"id": 2, "name": {"first": "Alice"},"department": "engineering"}
      {"id": 3, "name": null, "department": "hr"} 

       

      We can see that the filter value {name:string} will replace the nested values such as "name": {"first": "Mike", "last": "Jones"}. Thus, the JSON parser should skip those nested values as it will be replaced by the filter value (i.e., "Jones" as in the example above)

      Attachments

        Activity

          People

            wyk Wail Y. Alkowaileet
            wyk Wail Y. Alkowaileet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: