mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-30 03:46:10 +00:00
Fix Schema Field Null Issue (#16510)
This commit is contained in:
parent
5a457d37fe
commit
022772943f
@ -410,9 +410,9 @@ public class TopicRepository extends EntityRepository<Topic> {
|
|||||||
updateSchemaFields(
|
updateSchemaFields(
|
||||||
"messageSchema.schemaFields",
|
"messageSchema.schemaFields",
|
||||||
original.getMessageSchema() == null
|
original.getMessageSchema() == null
|
||||||
? null
|
? new ArrayList<>()
|
||||||
: original.getMessageSchema().getSchemaFields(),
|
: listOrEmpty(original.getMessageSchema().getSchemaFields()),
|
||||||
updated.getMessageSchema().getSchemaFields(),
|
listOrEmpty(updated.getMessageSchema().getSchemaFields()),
|
||||||
EntityUtil.schemaFieldMatch);
|
EntityUtil.schemaFieldMatch);
|
||||||
}
|
}
|
||||||
recordChange("topicConfig", original.getTopicConfig(), updated.getTopicConfig());
|
recordChange("topicConfig", original.getTopicConfig(), updated.getTopicConfig());
|
||||||
@ -489,7 +489,10 @@ public class TopicRepository extends EntityRepository<Topic> {
|
|||||||
if (updated.getChildren() != null && stored.getChildren() != null) {
|
if (updated.getChildren() != null && stored.getChildren() != null) {
|
||||||
String childrenFieldName = EntityUtil.getFieldName(fieldName, updated.getName());
|
String childrenFieldName = EntityUtil.getFieldName(fieldName, updated.getName());
|
||||||
updateSchemaFields(
|
updateSchemaFields(
|
||||||
childrenFieldName, stored.getChildren(), updated.getChildren(), fieldMatch);
|
childrenFieldName,
|
||||||
|
listOrEmpty(stored.getChildren()),
|
||||||
|
listOrEmpty(updated.getChildren()),
|
||||||
|
fieldMatch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user