[jira] [Commented] (ATLAS-3139) basic search enhancement to include relationship attributes as well in the result

2019-04-15 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on ATLAS-3139:


Commit 2caf30ae21556bd0ae3ea0b791344f50defe460d in atlas's branch 
refs/heads/branch-1.0 from Madhan Neethiraj
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=2caf30a ]

ATLAS-3139: updated basic search to include relationship attributes as well in 
the result

(cherry picked from commit 9c9eed274532391ceb57a0e17d0b2f8611530f8a)


> basic search enhancement to include relationship attributes as well in the 
> result
> -
>
> Key: ATLAS-3139
> URL: https://issues.apache.org/jira/browse/ATLAS-3139
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 2.0.0
>Reporter: Madhan Neethiraj
>Assignee: Madhan Neethiraj
>Priority: Major
> Fix For: 1.2.0, 2.0.0
>
> Attachments: ATLAS-3139.patch
>
>
> Basic-search results should include list of attributes specified in the 
> search-request. This works for attributes that are directly defined in the 
> given entity-type; if an attribute is a relationship attribute (for example: 
> attribute 'table' in type 'hive_column'), its value is not included in the 
> result.
> Request:
> {noformat}
> POST api/atlas/v2/search/basic
> { "typeName":"hive_column", "limit":2, "attributes":[ "table", "position" ]}
> {noformat}
> Response:
> {noformat}
> {
>   "queryType": "BASIC",
>   "searchParameters": {
> "typeName":   "hive_column",
> "limit":  2,
> "attributes": [ "position", "table" ]
>   }
>   "entities": [
> {
>   "guid":"464d3a2b-b1e0-4731-a924-4286b9e578ba",
>   "typeName":"hive_column",
>   "displayText": "dob",
>   "status":  "ACTIVE",
>   "attributes": {
> "name":  "dob",
> "owner": "madhan",
> "position":  2,
> "qualifiedName": "testdb.testtable.dob@cl1"
>   }
> },
> {
>   "guid":"1684e785-9200-41d0-843e-e79167a4a6e0",
>   "typeName":"hive_column",
>   "displayText": "name",
>   "status":  "ACTIVE",
>   "attributes": {
> "name":  "name",
> "owner": "madhan",
> "position":  1,
> "qualifiedName": "testdb.testtable.name@cl1"
>   }
> }
>   ]
> }
> {noformat}
> Expected Response:
> {noformat}
> {
>   "queryType": "BASIC",
>   "searchParameters": {
> "typeName":   "hive_column",
> "limit":  2,
> "attributes": [ "position", "table" ]
>   },
>   "entities": [
> {
>   "guid":"464d3a2b-b1e0-4731-a924-4286b9e578ba",
>   "typeName":"hive_column",
>   "displayText": "dob",
>   "status":  "ACTIVE",
>   "attributes": {
> "name":  "dob",
> "owner": "madhan",
> "position":  2,
> "qualifiedName": "testdb.testtable.dob@cl1",
> "table": {
>   "guid": "3b29c9ae-d765-485d-bdba-bde1f9cc6794",
>   "typeName": "hive_table",
>   "uniqueAttributes": {
> "qualifiedName": "testdb.testtable@cl1"
>   }
> }
>   }
> },
> {
>   "guid":"1684e785-9200-41d0-843e-e79167a4a6e0",
>   "typeName":"hive_column",
>   "displayText": "name",
>   "status":  "ACTIVE",
>   "attributes": {
> "name":  "name",
> "owner": "madhan",
> "position":  1,
> "qualifiedName": "testdb.testtable.name@cl1",
> "table": {
>   "guid": "3b29c9ae-d765-485d-bdba-bde1f9cc6794",
>   "typeName": "hive_table",
>   "uniqueAttributes": {
> "qualifiedName": "testdb.testtable@cl1"
>   }
> }
>   }
> }
>   ],
>   "referredEntities": {
> "3b29c9ae-d765-485d-bdba-bde1f9cc6794": {
>   "guid":"3b29c9ae-d765-485d-bdba-bde1f9cc6794",
>   "typeName":"hive_table",
>   "status":  "ACTIVE",
>   "displayText": "testtable",
>   "attributes": {
> "createTime":155523129,
> "name":  "testtable",
> "owner": "madhan",
> "qualifiedName": "testdb.testtable@cl1"
>   }
> }
>   }
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ATLAS-3139) basic search enhancement to include relationship attributes as well in the result

2019-04-15 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on ATLAS-3139:


Commit 02b2b02822da5e5b342d9c181eebb09e407cba50 in atlas's branch 
refs/heads/branch-2.0 from Madhan Neethiraj
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=02b2b02 ]

ATLAS-3139: updated basic search to include relationship attributes as well in 
the result

(cherry picked from commit 9c9eed274532391ceb57a0e17d0b2f8611530f8a)


> basic search enhancement to include relationship attributes as well in the 
> result
> -
>
> Key: ATLAS-3139
> URL: https://issues.apache.org/jira/browse/ATLAS-3139
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 2.0.0
>Reporter: Madhan Neethiraj
>Assignee: Madhan Neethiraj
>Priority: Major
> Fix For: 1.2.0, 2.0.0
>
> Attachments: ATLAS-3139.patch
>
>
> Basic-search results should include list of attributes specified in the 
> search-request. This works for attributes that are directly defined in the 
> given entity-type; if an attribute is a relationship attribute (for example: 
> attribute 'table' in type 'hive_column'), its value is not included in the 
> result.
> Request:
> {noformat}
> POST api/atlas/v2/search/basic
> { "typeName":"hive_column", "limit":2, "attributes":[ "table", "position" ]}
> {noformat}
> Response:
> {noformat}
> {
>   "queryType": "BASIC",
>   "searchParameters": {
> "typeName":   "hive_column",
> "limit":  2,
> "attributes": [ "position", "table" ]
>   }
>   "entities": [
> {
>   "guid":"464d3a2b-b1e0-4731-a924-4286b9e578ba",
>   "typeName":"hive_column",
>   "displayText": "dob",
>   "status":  "ACTIVE",
>   "attributes": {
> "name":  "dob",
> "owner": "madhan",
> "position":  2,
> "qualifiedName": "testdb.testtable.dob@cl1"
>   }
> },
> {
>   "guid":"1684e785-9200-41d0-843e-e79167a4a6e0",
>   "typeName":"hive_column",
>   "displayText": "name",
>   "status":  "ACTIVE",
>   "attributes": {
> "name":  "name",
> "owner": "madhan",
> "position":  1,
> "qualifiedName": "testdb.testtable.name@cl1"
>   }
> }
>   ]
> }
> {noformat}
> Expected Response:
> {noformat}
> {
>   "queryType": "BASIC",
>   "searchParameters": {
> "typeName":   "hive_column",
> "limit":  2,
> "attributes": [ "position", "table" ]
>   },
>   "entities": [
> {
>   "guid":"464d3a2b-b1e0-4731-a924-4286b9e578ba",
>   "typeName":"hive_column",
>   "displayText": "dob",
>   "status":  "ACTIVE",
>   "attributes": {
> "name":  "dob",
> "owner": "madhan",
> "position":  2,
> "qualifiedName": "testdb.testtable.dob@cl1",
> "table": {
>   "guid": "3b29c9ae-d765-485d-bdba-bde1f9cc6794",
>   "typeName": "hive_table",
>   "uniqueAttributes": {
> "qualifiedName": "testdb.testtable@cl1"
>   }
> }
>   }
> },
> {
>   "guid":"1684e785-9200-41d0-843e-e79167a4a6e0",
>   "typeName":"hive_column",
>   "displayText": "name",
>   "status":  "ACTIVE",
>   "attributes": {
> "name":  "name",
> "owner": "madhan",
> "position":  1,
> "qualifiedName": "testdb.testtable.name@cl1",
> "table": {
>   "guid": "3b29c9ae-d765-485d-bdba-bde1f9cc6794",
>   "typeName": "hive_table",
>   "uniqueAttributes": {
> "qualifiedName": "testdb.testtable@cl1"
>   }
> }
>   }
> }
>   ],
>   "referredEntities": {
> "3b29c9ae-d765-485d-bdba-bde1f9cc6794": {
>   "guid":"3b29c9ae-d765-485d-bdba-bde1f9cc6794",
>   "typeName":"hive_table",
>   "status":  "ACTIVE",
>   "displayText": "testtable",
>   "attributes": {
> "createTime":155523129,
> "name":  "testtable",
> "owner": "madhan",
> "qualifiedName": "testdb.testtable@cl1"
>   }
> }
>   }
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ATLAS-3139) basic search enhancement to include relationship attributes as well in the result

2019-04-15 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on ATLAS-3139:


Commit 9c9eed274532391ceb57a0e17d0b2f8611530f8a in atlas's branch 
refs/heads/master from Madhan Neethiraj
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=9c9eed2 ]

ATLAS-3139: updated basic search to include relationship attributes as well in 
the result


> basic search enhancement to include relationship attributes as well in the 
> result
> -
>
> Key: ATLAS-3139
> URL: https://issues.apache.org/jira/browse/ATLAS-3139
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 2.0.0
>Reporter: Madhan Neethiraj
>Assignee: Madhan Neethiraj
>Priority: Major
> Fix For: 1.2.0, 2.0.0
>
> Attachments: ATLAS-3139.patch
>
>
> Basic-search results should include list of attributes specified in the 
> search-request. This works for attributes that are directly defined in the 
> given entity-type; if an attribute is a relationship attribute (for example: 
> attribute 'table' in type 'hive_column'), its value is not included in the 
> result.
> Request:
> {noformat}
> POST api/atlas/v2/search/basic
> { "typeName":"hive_column", "limit":2, "attributes":[ "table", "position" ]}
> {noformat}
> Response:
> {noformat}
> {
>   "queryType": "BASIC",
>   "searchParameters": {
> "typeName":   "hive_column",
> "limit":  2,
> "attributes": [ "position", "table" ]
>   }
>   "entities": [
> {
>   "guid":"464d3a2b-b1e0-4731-a924-4286b9e578ba",
>   "typeName":"hive_column",
>   "displayText": "dob",
>   "status":  "ACTIVE",
>   "attributes": {
> "name":  "dob",
> "owner": "madhan",
> "position":  2,
> "qualifiedName": "testdb.testtable.dob@cl1"
>   }
> },
> {
>   "guid":"1684e785-9200-41d0-843e-e79167a4a6e0",
>   "typeName":"hive_column",
>   "displayText": "name",
>   "status":  "ACTIVE",
>   "attributes": {
> "name":  "name",
> "owner": "madhan",
> "position":  1,
> "qualifiedName": "testdb.testtable.name@cl1"
>   }
> }
>   ]
> }
> {noformat}
> Expected Response:
> {noformat}
> {
>   "queryType": "BASIC",
>   "searchParameters": {
> "typeName":   "hive_column",
> "limit":  2,
> "attributes": [ "position", "table" ]
>   },
>   "entities": [
> {
>   "guid":"464d3a2b-b1e0-4731-a924-4286b9e578ba",
>   "typeName":"hive_column",
>   "displayText": "dob",
>   "status":  "ACTIVE",
>   "attributes": {
> "name":  "dob",
> "owner": "madhan",
> "position":  2,
> "qualifiedName": "testdb.testtable.dob@cl1",
> "table": {
>   "guid": "3b29c9ae-d765-485d-bdba-bde1f9cc6794",
>   "typeName": "hive_table",
>   "uniqueAttributes": {
> "qualifiedName": "testdb.testtable@cl1"
>   }
> }
>   }
> },
> {
>   "guid":"1684e785-9200-41d0-843e-e79167a4a6e0",
>   "typeName":"hive_column",
>   "displayText": "name",
>   "status":  "ACTIVE",
>   "attributes": {
> "name":  "name",
> "owner": "madhan",
> "position":  1,
> "qualifiedName": "testdb.testtable.name@cl1",
> "table": {
>   "guid": "3b29c9ae-d765-485d-bdba-bde1f9cc6794",
>   "typeName": "hive_table",
>   "uniqueAttributes": {
> "qualifiedName": "testdb.testtable@cl1"
>   }
> }
>   }
> }
>   ],
>   "referredEntities": {
> "3b29c9ae-d765-485d-bdba-bde1f9cc6794": {
>   "guid":"3b29c9ae-d765-485d-bdba-bde1f9cc6794",
>   "typeName":"hive_table",
>   "status":  "ACTIVE",
>   "displayText": "testtable",
>   "attributes": {
> "createTime":155523129,
> "name":  "testtable",
> "owner": "madhan",
> "qualifiedName": "testdb.testtable@cl1"
>   }
> }
>   }
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)