mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-07 13:07:22 +00:00
ISSUE-20533: fetching tag field for table to not delete certification (#20534)
* ISSUE-20533: fetching tag field for table to not delete certification * java codestyle * format --------- Co-authored-by: Imri Paran <imri.paran@gmail.com> Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
This commit is contained in:
parent
9d19bd3eca
commit
d9987717fa
@ -628,7 +628,8 @@ public class TableRepository extends EntityRepository<Table> {
|
||||
}
|
||||
|
||||
public Table addDataModel(UUID tableId, DataModel dataModel) {
|
||||
Table table = get(null, tableId, getFields(FIELD_OWNERS), NON_DELETED, false);
|
||||
Table table =
|
||||
get(null, tableId, getFields(Set.of(FIELD_OWNERS, FIELD_TAGS)), NON_DELETED, false);
|
||||
|
||||
// Update the sql fields only if correct value is present
|
||||
if (dataModel.getRawSql() == null || dataModel.getRawSql().isBlank()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user