Pinal Shah created ATLAS-4776: --------------------------------- Summary: Basic Search : not null userDefined Attributes return incorrect results Key: ATLAS-4776 URL: https://issues.apache.org/jira/browse/ATLAS-4776 Project: Atlas Issue Type: Bug Components: atlas-core Reporter: Pinal Shah
{*}Issue{*}: using not null operator with userDefined attributes, returns some entities which doesn't have userDefined attirbutes. {*}Reproduce{*}: Assign one userDefined attribute to X entity, Remove all the userDefined attribute assigned to X entity. Search with notNull userDefined attributes. Actual: Lists X entity Expected: shouldn't list X entity, as all the attributes are removed. {*}Cause{*}: As the userDefined attributes are stored in json format, when we remove all the attributes, it removes all the list but it leaves *'{}'* blank json, which matches the nonNull field. {*}Fix{*}: While removing the userDefined, check the Empty list, and remove the json object. -- This message was sent by Atlassian Jira (v8.20.10#820010)