Abhishek Pal created ATLAS-4750:
-----------------------------------

             Summary: [Relationship Search] Relationship search isNull case 
doesn't consider null strings
                 Key: ATLAS-4750
                 URL: https://issues.apache.org/jira/browse/ATLAS-4750
             Project: Atlas
          Issue Type: Bug
          Components:  atlas-core
            Reporter: Abhishek Pal


Currently Atlas supports relationship search where we can search entities by 
their relationships.
We can use various filters to search for the relationship, where one such 
filter is a condition of "isNull".

If there are relationships where a string type attribute is set to *""* (null 
string), it considers this as non-null.

For example if there is are two relationships with attributes:
* relation_X
** "type_str": ""
* relation_Y
** "type_str": null

and we search by condition:
{code}
{
    "attributeName": "type_str",
    "operator": "isNull",
    "attributeValue": ""
}
{code}
we get only *relation_Y*

Whereas since *relation_X* has
{panel} "type_str":"" {panel}
it is not treated as a null value and hence not returned.
Ideally this should also be considered a null type



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to