Created 05-31-2018 11:13 AM
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
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
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
@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.