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

Apoorv Naik reassigned ATLAS-2151:
----------------------------------

    Assignee: Apoorv Naik

> 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
>            Assignee: Apoorv Naik
>            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)

Reply via email to