Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.3.0
-
None
-
None
Description
request:
{"query":"\"badger_err_event\"","entityFilters":{"condition":"AND","criterion":[{"attributeName":"datasource_info.tenantId","operator":"=","attributeValue":"394284867937894403"},{"attributeName":"datasource_info.projectId","operator":"=","attributeValue":"default"}]},"offset":0,"limit":10,"typeName":"_ALL_ENTITY_TYPES","includeSubTypes":true}
response:
{"searchResults":{"queryType":"BASIC","searchParameters":{"query":"\"badger_err_event\"","typeName":"_ALL_ENTITY_TYPES","excludeDeletedEntities":false,"includeClassificationAttributes":false,"includeSubTypes":true,"includeSubClassifications":true,"excludeHeaderAttributes":false,"limit":10,"offset":0,"entityFilters":{"condition":"AND","criterion":[{"attributeName":"datasource_info.tenantId","operator":"=","attributeValue":"394284867937894403"},{"attributeName":"datasource_info.projectId","operator":"=","attributeValue":"default"}]}},"queryText":"\"badger_err_event\"","entities":[{"typeName":"rdbms_table","attributes":{"owner":"","datasource_info.projectId":"default","createTime":0,"qualifiedName":"PostgreSQL/10.3.101.188:5433/table:rds.public.badger_err_event@394284867937894403.default","name":"badger_err_event","description":"","datasource_info.tenantId":"394284867937894403"},"guid":"479e5339-087b-42e7-a33c-b74ca85a12dc","status":"ACTIVE","displayText":"badger_err_event","classificationNames":[],"meaningNames":[],"meanings":[],"isIncomplete":false,"labels":[]}],"approximateCount":1},"aggregationMetrics":{"__typeName":[],"__state":[],"ServiceType":[],"Asset.owner":[]}}
After debugging, it was found that the processing of entityTypes used __ENTITY_ROOT, resulting in incorrect filtering in Solr queries:
2024-01-08 13:26:40,069 DEBUG - [etp1864869682-182 - c98a0068-d019-4ac2-aed9-f7983acde50c:] ~ Final query string prepared is +"badger_err_event" AND +f0l_t:(__ENTITY_ROOT ) AND ( ( +17vgl_t:394284867937894403 ) AND ( +17x1h_t:default ) ) (AtlasJanusGraphIndexClient:232 )