- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Atlas Entity Version does not update after entity update
- Labels:
-
Apache Atlas
Created 05-31-2018 11:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Old Entity
{ "entity": { "attributes": { "createTime": 0, "description": "", "locationUri": null, "name": "BCaLYKStWE", "owner": null, "randomTable": null }, "classifications": [ ], "createdBy": "admin", "createTime": 1527764632465, "guid": "e57a85ed-bdc9-4069-96a3-401b7c0a1365", "status": "ACTIVE", "typeName": "hive_db_v2", "updatedBy": "admin", "updateTime": 1527764668060, "version": 0 }, "referredEntities": { } }
New Entity
{ "referredEntities": {}, "entity": { "typeName": "hive_db_v2", "attributes": { "owner": null, "randomTable": null, "createTime": 0, "name": "BCaLYKStWE", "description": "", "locationUri": "" }, "guid": "e57a85ed-bdc9-4069-96a3-401b7c0a1365", "status": "ACTIVE", "createdBy": "admin", "updatedBy": "admin", "createTime": 1527764632465, "updateTime": 1527764668060, "version": 0, "classifications": [] } }
Note that version remains 0 even after the update. Am I missing something?
Reference: EntityV2JerseyResourceIT.java
Created 05-31-2018 07:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your observation is valid.
The version number is something related to the model (schema, definition is present in addons/models) of the entity and not the version of the entity itself.
Also, as of now, we don't have logic for dealing with version changes to schema.
In short, version field is not of much consequence right now.
Created 05-31-2018 07:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your observation is valid.
The version number is something related to the model (schema, definition is present in addons/models) of the entity and not the version of the entity itself.
Also, as of now, we don't have logic for dealing with version changes to schema.
In short, version field is not of much consequence right now.
Created 06-01-2018 06:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Ashutosh Mestry How about typeVersion, I don't see that being much useful either? (Refer StructTypeDefinition.java).
P.S. It would be really nice to have a version and typeversion implementation that updates itself to trace back the evolution.
