问题描述
我正在尝试命名两种不同类型之间的关系链接(通过使用 attributeDefs)。该关系现已注册到 Atlas 中,定义获取结果如下:
{
"category": "RELATIONSHIP","guid": "9b1059c3-8707-46db-ae3c-e8d1b4ef6333","createdBy": "admin","updatedBy": "admin","createTime": 1625233869809,"updateTime": 1625496519772,"version": 6,"name": "field_assignment","description": "someDescription.","typeVersion": "1.0","attributeDefs": [
{
"name": "Linkinformation","typeName": "string","isOptional": true,"cardinality": "SINGLE","valuesMinCount": 0,"valuesMaxCount": 1,"isUnique": false,"isIndexable": false,"includeInNotification": false,"searchWeight": -1
}
],"relationshipCategory": "ASSOCIATION","propagateTags": "NONE","endDef1": {
"type": "custom_dataset","name": "fields","isContainer": false,"cardinality": "SET","isLegacyAttribute": false
},"endDef2": {
"type": "custom_field","name": "datasets","isLegacyAttribute": false
}
}
现在,我正在尝试在两种类型之间创建关系,同时为任一类型定义实体,例如
{
"entities": [
{
"typeName": "custom_field","guid": -1000,"attributes": {
"name": "type","datasets": [
{
"guid": "-200","typeName": "custom_dataset"
}
]
},"classifications": [],}
],"referredEntities": {
"-200": {
"guid": "-200","typeName": "custome_dataset","relationshipAttributes" : {"Linkinformation": "key"},"attributes": {
"qualifiedname": "test"
}
}
}
}
通过,在执行此操作时,我没有看到任何错误并创建了实体,但通过简单地按 Linkinformation
搜索实体,GUID
为空。
...
"relationshipAttributes": {
"typeName": "field_assignment","attributes": {
"Linkinformation": null
}
}
...
我无法在任何地方为此找到好的文档。有人可以帮忙吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)