Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.8-incubating
-
None
Description
Entity notification object has 3 fields: entity, operationType, traits. Date type attributes in 'traits' are serialized in a different format than the same attributes in entity.traits field, as shown below:
notification.entity.traits:
"traits": { "TEST_TAG":{ "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Struct", "typeName":"TEST_TAG", "values": { "createTime":"2017-11-22T08:00:00.000Z" } } }
notification.traits:
"traits": [ { "typeName":"TEST_TAG", "values": { "createTime":"Nov 22, 2017 12:00:00 AM" } } ]
This needs to be fixed so that the notification consumers will be able read the same value in either fields.