[ https://issues.apache.org/jira/browse/ATLAS-5032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paresh Devalia reassigned ATLAS-5032: ------------------------------------- Assignee: Paresh Devalia > Basic search using qualifiedName with "starts with" and "ends with" > operators does not return results for long entity names. > ----------------------------------------------------------------------------------------------------------------------------- > > Key: ATLAS-5032 > URL: https://issues.apache.org/jira/browse/ATLAS-5032 > Project: Atlas > Issue Type: Bug > Reporter: Paresh Devalia > Assignee: Paresh Devalia > Priority: Major > > We created a hive_table entity in Apache Atlas with the following details: > * name: A string with 370 characters. > * qualifiedName: In the format default.<entity_name>@primary, where > <entity_name> is the same 370-character string. > Despite the entity being successfully created and visible through direct > entity retrieval, *basic search queries using attribute filters on* > *qualifiedName* *are not returning results* when using an AND condition with > the following filters: > # qualifiedName *starts with* default.<entity_name> > # qualifiedName *ends with* @primary > *Steps to Reproduce:* > # Create an entity with a long name and corresponding qualified name using > the following curl command: > {code:java} > curl --location --request POST 'http://localhost:21000/api/atlas/v2/entity' \ > -u <username>:<password> \ > --header 'Content-Type: application/json' \ > --data-raw '{ > "entity": > Unknown macro: { "typeName"} > , > "referredEntities": {} > }'{code} > > # Perform a basic search using attribute filters: > # qualifiedName starts with default.<370_char_string> > # qualifiedName ends with @primary > # Curl request as below > {code:java} > curl 'http://localhost:21000/api/atlas/v2/search/basic' \ > -u <username>:<password> \ > --header 'Content-Type: application/json' \ > --data-raw '{ > "excludeDeletedEntities": true, > "includeSubClassifications": true, > "includeSubTypes": true, > "includeClassificationAttributes": true, > "entityFilters": > Unknown macro: { "condition"} > , > "tagFilters": null, > "attributes": [ > "qualifiedName" > ], > "limit": 25, > "offset": 0, > "typeName": "hive_table", > "classification": null, > "termName": null > }' > {code} > -- This message was sent by Atlassian Jira (v8.20.10#820010)