You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Harish Jaiprakash (JIRA)" <ji...@apache.org> on 2016/05/06 07:44:12 UTC

[jira] [Updated] (ATLAS-754) InstanceSerialization does not serialize Reference in the values array of Reference.

     [ https://issues.apache.org/jira/browse/ATLAS-754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harish Jaiprakash updated ATLAS-754:
------------------------------------
    Attachment: 754.patch

> InstanceSerialization does not serialize Reference in the values array of Reference.
> ------------------------------------------------------------------------------------
>
>                 Key: ATLAS-754
>                 URL: https://issues.apache.org/jira/browse/ATLAS-754
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.7-incubating
>            Reporter: Harish Jaiprakash
>            Assignee: Harish Jaiprakash
>             Fix For: 0.7-incubating
>
>         Attachments: 754.patch
>
>
> If the values array contains a reference then the deserialization from Json makes it null.
> Ex:
> {
>       "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
>       "id": {
>           "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
>           "version": 0,
>           "typeName": "LoadProcess"
>       },
>       "typeName": "LoadProcess",
>       "values": {
>           "inputTables": [{
>                   "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
>                   "typeName": "LoadProcess",
>                   "values": {}
>                   "traitNames": []
>                   "traits": {}
>               }
>           ],
>           "outputTable": {
>               "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
>               "id": "d5c3d6d0-aa10-44c1-b05d-ed9400d2a5ac",
>               "version": 0,
>               "typeName": "Table"
>           },
>           "name": "loadSalesDaily"
>       },
>       "traitNames": [
>           "ETL"
>       ],
>       "traits": {
>           "ETL": {
>               "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Struct",
>               "typeName": "ETL",
>               "values": {
>               }
>           }
>         }
>       }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)