You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Madhan Neethiraj (JIRA)" <ji...@apache.org> on 2018/05/17 01:38:00 UTC
[jira] [Updated] (ATLAS-2214) Search using trait attributes "!="
and "is not null" together and in order in string,boolean tag attribute
filter comparison
[ https://issues.apache.org/jira/browse/ATLAS-2214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Madhan Neethiraj updated ATLAS-2214:
------------------------------------
Fix Version/s: 0.8.3
1.0.0
> Search using trait attributes "!=" and "is not null" together and in order in string,boolean tag attribute filter comparison
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: ATLAS-2214
> URL: https://issues.apache.org/jira/browse/ATLAS-2214
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Reporter: Sharmadha Sainath
> Assignee: Apoorv Naik
> Priority: Critical
> Fix For: 1.0.0, 0.8.3
>
> 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
(v7.6.3#76005)