You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "David Radley (JIRA)" <ji...@apache.org> on 2017/01/19 15:51:26 UTC

[jira] [Commented] (ATLAS-1481) Create Entity via UI : 2 way association is needed to associate hive_column to hive_table

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

David Radley commented on ATLAS-1481:
-------------------------------------

This came up on the dev list. I suggest adding to the constraint to indicate to Atlas it needs to keep the 2 ends of the reference in sync.   

Maybe something like this:
 
constraintDefs": [
                        {
                            "type": "mappedFromRef",
                            "params": {
                                "inSyncRefAttribute": "TestType2",
		                "refLabel ": "name"	
                            }
                        } 

> Create Entity via UI : 2 way association is needed to associate hive_column to hive_table
> -----------------------------------------------------------------------------------------
>
>                 Key: ATLAS-1481
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1481
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>            Reporter: Sharmadha Sainath
>
> 1.Created a hive_table test_table using Create Entity in UI with empty columns.
> 2. Created hive_column column1 with table as test_table.
> In column1 properties, table is test_table .
> But,it is required to add the hive_column in test_table by editing the test_table also so that column1 is actually associated to test_table.
> After adding the column to table by editing the table entity ,it may cause inconsistency ,if hive_column is updated later to be a part of some other new table and the old table is not updated properly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)