atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harish Jaiprakash (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ATLAS-754) InstanceSerialization does not serialize Reference in the values array of Reference.
Date Fri, 06 May 2016 07:44:12 GMT

     [ 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)

Mime
View raw message