atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (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 Sun, 24 Sep 2017 22:40:00 GMT

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

Madhan Neethiraj updated ATLAS-2151:
------------------------------------
    Affects Version/s:     (was: 0.9.1)

> 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
>            Reporter: Sharmadha Sainath
>            Assignee: Apoorv Naik
>            Priority: Critical
>             Fix For: 0.9-incubating, 0.8.2
>
>         Attachments: 0002-ATLAS-2151-Surrounding-brace-fix-for-multiple-filter.patch
>
>
> 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