open-metadata / OpenMetadata

OpenMetadata is a unified metadata platform for data discovery, data observability, and data governance powered by a central metadata repository, in-depth column level lineage, and seamless team collaboration.
https://open-metadata.org
Apache License 2.0
5.46k stars 1.03k forks source link

TagLabels in Tables and MlModels are stored as part of the entity #11342

Closed nahuelverdugo closed 1 year ago

nahuelverdugo commented 1 year ago

Affected module Backend

Describe the bug

When we store MlModels and Tables, we keep the TagLabel object instead of a reference to it. This can cause issues when we change the TagLabel JSON schema, as in #10486.

To Reproduce

  1. Start OM
  2. Create a Table with a DataModel containing a column with a tag.
  3. Stop OM
  4. Update the values of any enum in the TagLabel JSON schema.
  5. Build and start OM.

An error like this appears:

image

Expected behavior It should display the table without any errors.

Version:

Additional context N/A

harshach commented 1 year ago

cannot reproduce