Sharmadha Sainath created ATLAS-2214:
----------------------------------------
Summary: Search using entity and trait attributes "!=" and "is
not null" together and in order in string,boolean tag filter attribute
comparison
Key: ATLAS-2214
URL: https://issues.apache.org/jira/browse/ATLAS-2214
Project: Atlas
Issue Type: Bug
Components: atlas-core
Reporter: Sharmadha Sainath
Priority: Critical
Attachments: not_equals_and_not_null_tag_filter_exception.txt
1. Created a tag tag1 with attributes of all data types.
2. Fired a basic search with tag1 and following tag filters of type string:
a)string != rand
b)string is not null
POST body
{code}
{
"excludeDeletedEntities":true,
"entityFilters":null,
"tagFilters":{
"condition":"AND",
"criterion":[
{
"attributeName":"string",
"operator":"neq",
"attributeValue":"rand"
},
{
"attributeName":"string",
"operator":"not_null",
"attributeValue":""
}
]
},
"attributes":null,
"limit":25,
"offset":0,
"typeName":null,
"classification":"tag1"
}
{code}
The search threw 500 Internal server exception. Attached the stack trace .
Note :
1)This exception is not seen if order is reversed (i.e) , in the order
a)string is not null
b)string != rand
In this order , correct results are fetched.
2)For string and boolean data types , this exception is seen. This was not seen
with int , float, short , double , date , enum .
3)Also , this issue is seen only in tag attribute filters and not in type
attribute filters.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)