[
https://issues.apache.org/jira/browse/ATLAS-4410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17411846#comment-17411846
]
Rahul Kurup commented on ATLAS-4410:
------------------------------------
Hi,
I tried the firing the jsons you have posted here in the jira to their
respective APIs to attempt to replicate but I feel there is some information
missing as I am encountering this error:
{
"errorCode": "ATLAS-400-00-01A",
"errorMessage": "invalid parameters: found null entity"
}
Would it be possible for you to provide additional information like the entity
typedefs for each of the entities and any other json used that is not mentioned
in the above jira?
> Name relationship link between two different types in Apache Atlas
> ------------------------------------------------------------------
>
> Key: ATLAS-4410
> URL: https://issues.apache.org/jira/browse/ATLAS-4410
> Project: Atlas
> Issue Type: Test
> Components: atlas-core
> Affects Versions: 2.0.0
> Reporter: Saqib
> Priority: Blocker
> Fix For: 2.0.0
>
>
> I am trying to name relationship link (by using attributeDefs) between two
> different types. The relationship is now registered in Atlas and definition
> fetch results as below:
>
> {{{
> "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
> }}}
> }
> Now, I am trying to create a relationship between two types while defining an
> Entity for either type like
>
> {{{
> "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"
> }
> }
> }}}
> }
> Through, while executing this, I don't see any error and entities are created
> but {{LinkInformation}} is null by simply doing a search by {{GUID}} for
> entities.
>
> {{...
> "relationshipAttributes": \{
> "typeName": "field_assignment",
> "attributes": {
> "LinkInformation": null
> }
> }
> ...}}
> I am not able to find a good documentation anywhere for this. Can anyone help?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)