Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Atlas Entity Version does not update after entity update

avatar

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

avatar
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

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

avatar

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