[ 
https://issues.apache.org/jira/browse/ATLAS-2178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16182154#comment-16182154
 ] 

David Radley commented on ATLAS-2178:
-------------------------------------

[~ppadovani]
I think I know what you are doing - but just to be very clear It would be 
helpful if you could supply the json that you use to create the types and the 
instances - we can then use curl or postman to reproduce.  

I am not sure what you mean by "Create the containment relationship between the 
two models.". Models are not exposed as a concept in the type system, they are 
convenient ways to name files that are to be loaded at startup. 
I assume you are looking to create a containment relationship between 2 types. 
There is the legacy way of doing this using constraints - which gives you 
composition. There is the new way of doing this using relationshipDefs 
specifying aggregation or composition. If you submit the json you are using 
(and relevant responses) we can see what you are doing. 

I am curious what your use case for doing this sort of inheritance. Do you need 
to use your hive table specialization and the parent hive table, or are you 
only using your specialization. I wonder if patching the hive table might be 
worth considering.  


> Type Inheritance in conjunction with RelationshipDef fails to set legacy 
> attributes
> -----------------------------------------------------------------------------------
>
>                 Key: ATLAS-2178
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2178
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 1.0.0
>            Reporter: Pierre Padovani
>
> If a type inherits from another that has an old style reference attribute, 
> and a new style RelationshipDef defined, creating the relationship instance 
> fails to set the legacy attributes and in some cases fails to create the 
> relationship itself.
> Steps to reproduce:
> * create a type, say my_table, that inherits from the hive_table
> * Create an instance of the new type my_table
> * Create an instance of a hive_column
> * Create the containment relationship between the two models.
> This behavior causes odd and inconsistent behavior and fully breaks lineage 
> reports for process types that inherit from the built in Process.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to