[
https://issues.apache.org/jira/browse/ATLAS-2057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Apoorv Naik resolved ATLAS-2057.
--------------------------------
Resolution: Invalid
This is by design. We'll add clarification to the REST API docs to ensure that
the caller understands the design decision.
> Attributes filter does not show the attribute and value if the value of that
> attribute is null
> ----------------------------------------------------------------------------------------------
>
> Key: ATLAS-2057
> URL: https://issues.apache.org/jira/browse/ATLAS-2057
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: 0.9-incubating
> Reporter: Sharmadha Sainath
> Assignee: Apoorv Naik
>
> 1.Created a hive_table.
> 2. Few attributes like aliases , partitionKeys , viewOriginalText ,
> viewExpandedText , description had null values.
> 3. Fired a basic query with following POST body :
> {code}
> {
> "entityFilters":null
> "tagFilters":null,
> "attributes":["viewExpandedText","comment","retention","aliases"],
> "query":null,
> "excludeDeletedEntities":true,
> "limit":25,
> "typeName":"hive_table",
> "classification":null
> }
> {code}
> Following is the response :
> {code}
> {
> "queryType": "BASIC",
> "searchParameters": {
> "typeName": "hive_table",
> "excludeDeletedEntities": true,
> "limit": 25,
> "offset": 0,
> "entityFilters":null,
> "attributes": [
> "viewExpandedText",
> "aliases",
> "comment",
> "retention"
> ]
> },
> "entities": [
> {
> "typeName": "hive_table",
> "attributes": {
> "owner": "hrt_qa",
> "qualifiedName": "db_h189c6z0eu.table_12_h189c6z0eu@cl1",
> "name": "table_12_h189c6z0eu",
> "description": null,
> "retention": 0
> },
> "guid": "c1a1362d-75f8-42a9-8ad8-3792ecc75018",
> "status": "ACTIVE",
> "displayText": "table_12_h189c6z0eu",
> "classificationNames": []
> }
> ]
> }
> {code}
> In the "attributes" key value , only retention is seen because it has
> non-null value. Other null valued attributes are ignored.
> If response has 2 entities and the second hive_table entity has non-null
> values for aliases , partitionKeys , viewOriginalText , viewExpandedText ,
> the attribute along with non-null value is fetched in the response. It can be
> confusing as why for one hive_table entity few attributes are not retrieved.
> It is fine from the UI since the attribute name is shown and the value is
> empty for null valued attributes.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)