我试图命名两种不同类型之间的关系链接(通过使用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",
"isContainer": false,
"cardinality": "SET",
"isLegacyAttribute": false
}
}
现在,我正在尝试在两种类型之间创建关系,同时为任何一种类型定义实体,例如
{
"entities": [
{
"typeName": "custom_field",
"createdBy": "admin",
"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
}
}
...
我无法在任何地方找到一个好的文档。任何人都可以帮忙吗?