mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-29 01:42:08 +00:00
fix(entity controller) Fix case sensitivity in entity controller (#14902)
Co-authored-by: jjia <jjia@netflix.com>
This commit is contained in:
parent
9c22a4ae62
commit
d87f46d686
@ -492,12 +492,13 @@ public class EntityController
|
||||
// Group results by entity type for response structure
|
||||
Map<String, List<IngestResult>> resultsByEntityType = new HashMap<>();
|
||||
for (IngestResult result : results) {
|
||||
String entityType = result.getUrn().getEntityType();
|
||||
String entityType = result.getUrn().getEntityType().toLowerCase();
|
||||
resultsByEntityType.computeIfAbsent(entityType, k -> new ArrayList<>()).add(result);
|
||||
}
|
||||
|
||||
for (String entityName : entityTypes) {
|
||||
List<IngestResult> entityResults = resultsByEntityType.getOrDefault(entityName, List.of());
|
||||
List<IngestResult> entityResults =
|
||||
resultsByEntityType.getOrDefault(entityName.toLowerCase(), List.of());
|
||||
response.put(entityName, buildEntityList(opContext, entityResults, withSystemMetadata));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user