atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sharmadha Sainath (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ATLAS-2151) Search using entity and trait attributes - OR condition considers only the first criterion in the list
Date Thu, 21 Sep 2017 09:48:00 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-2151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sharmadha Sainath updated ATLAS-2151:
-------------------------------------
    Summary: Search using entity and trait attributes - OR condition considers only the first
criterion in the list   (was: Search using entity and trait attributes - OR condition takes
only the first parameter)

> Search using entity and trait attributes - OR condition considers only the first criterion
in the list 
> -------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-2151
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2151
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.9-incubating, 0.9.1
>            Reporter: Sharmadha Sainath
>            Priority: Critical
>
> 1.Created 2 hive_table entities by name : table1 and table2.
> 2. Fired basic search query with following POST body :
> {code}
> {  
>    "entityFilters":{  
>       "condition":"OR",
>       "criterion":[ 
>          {  
>             "attributeName":"name",
>             "operator":"=",
>             "attributeValue":"table1"
>          },
>          {  
>             "attributeName":"name",
>             "operator":"=",
>             "attributeValue":"table2"
>          }
>       ]
>    },
>    "tagFilters":null,
>    "attributes":[  
>    ],
>    "query":null,
>    "limit":25,
>    "offset":0,
>    "typeName":"hive_table",
>    "classification":null,
>    "excludeDeletedEntities": false
> }
> {code}
> 2. Expected the response would return both table1 and table2.
> 3. Only table1 (first filter) is returned. Any filter other than "!=" in the second condition
doesn't fetch expected results.
> 4. Also when "excludeDeletedEntities" is set to true , though table1 and table2 are ACTIVE
, no entity is returned.



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

Mime
View raw message