Support Questions
Find answers, ask questions, and share your expertise

Atlas Entity Version does not update after entity update

New Contributor

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

1 ACCEPTED SOLUTION

Expert Contributor

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.

View solution in original post

2 REPLIES 2

Expert Contributor

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.

New Contributor

@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.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.