Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.9.9
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)