atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Bonte (Jira)" <j...@apache.org>
Subject [jira] [Created] (ATLAS-3536) Basic Search: Difference in results due to tag's case in regex and non-regex search
Date Tue, 26 Nov 2019 05:22:00 GMT
Nikhil Bonte created ATLAS-3536:
-----------------------------------

             Summary: Basic Search: Difference in results due to tag's case in regex and non-regex
search
                 Key: ATLAS-3536
                 URL: https://issues.apache.org/jira/browse/ATLAS-3536
             Project: Atlas
          Issue Type: Bug
            Reporter: Nikhil Bonte
            Assignee: Nikhil Bonte


*Dataset:*
 Create 2 tags: TAG1, tag1

Create 2 hdfs_path entities:
 * hdfs_path1 , associate it to TAG1
 * hdfs_path2 , associate it to tag1

 

*Problem:*
 Fire basic search with classificationName as:
 # tag1 -> returns only hdfs_path2
 # tag* -> returns hdfs_path1 and hdfs_path2 (should only return hdfs_path2)

e.g.
{code:java}
curl -X POST -u username:password '{host}/api/atlas/v2/search/basic' -H 'Accept: application/json,
text/javascript, /; q=0.01' -H 'Content-Type: application/json' --data-binary '{"excludeDeletedEntities":true,"includeSubClassifications":false,"includeSubTypes":false,"includeClassificationAttributes":true,"entityFilters":null,"tagFilters":null,"attributes":[],"limit":25,"offset":0,"classification":"tag*","termName":null}'
--compressed
{code}
 

*Analysis:*
 * Querying "tag1" also returns hdfs_path1 from index query, the filtering in "SearchProcessor.filterWhiteSpaceClassification()"
removes hdfs_path1 from results as it does not contain
 "TAG1" in its classification list.
 * However, querying "tag*", does not go through such filtering & request ends up returning
both entities tagged with "tag1" & "TAG1"



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message