[
https://issues.apache.org/jira/browse/ATLAS-1924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sharmadha Sainath updated ATLAS-1924:
-------------------------------------
Description:
Selected type = hive_table and applied filter
{code}
Retention != -1
{code}
other filters like <,>,>=,<=,= on negative numbers work as expected.
This happens for all integral and floating point data types .
The above threw 500 internal server error. Attached the application logs .
POST request body :
{code}
{
"entityFilters":{
"condition":"AND",
"criterion":[
{
"attributeName":"retention",
"operator":"!=",
"attributeValue":"-1"
}
]
},
"tagFilters":null,
"query":null,
"excludeDeletedEntities":true,
"limit":25,
"typeName":"hive_table",
"classification":null
}
{code}
was:
Selected type = hive_table and applied filter
{code}
Retention != -1
{code}
The above threw 500 internal server error. Attached the application logs .
POST request body :
{code}
{
"entityFilters":{
"condition":"AND",
"criterion":[
{
"attributeName":"retention",
"operator":"!=",
"attributeValue":"-1"
}
]
},
"tagFilters":null,
"query":null,
"excludeDeletedEntities":true,
"limit":25,
"typeName":"hive_table",
"classification":null
}
{code}
> Search using entity and trait attributes - Filtering integral and float data
> types with != (NOT EQUALS) on negative number throws exception
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: ATLAS-1924
> URL: https://issues.apache.org/jira/browse/ATLAS-1924
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: 0.9-incubating
> Reporter: Sharmadha Sainath
> Fix For: 0.9-incubating
>
> Attachments: NotEqualsSearchWithNegative.txt
>
>
> Selected type = hive_table and applied filter
> {code}
> Retention != -1
> {code}
> other filters like <,>,>=,<=,= on negative numbers work as expected.
> This happens for all integral and floating point data types .
> The above threw 500 internal server error. Attached the application logs .
> POST request body :
> {code}
> {
> "entityFilters":{
> "condition":"AND",
> "criterion":[
> {
> "attributeName":"retention",
> "operator":"!=",
> "attributeValue":"-1"
> }
> ]
> },
> "tagFilters":null,
> "query":null,
> "excludeDeletedEntities":true,
> "limit":25,
> "typeName":"hive_table",
> "classification":null
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)