Skip to content

Commit

Permalink
[ALS-5050] Ignore invalid concept paths in anyRecordOf queries
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Oct 23, 2023
1 parent b05a241 commit d88c346
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,12 @@ private void addIdSetsForAnyRecordOf(List<String> anyRecordOfFilters, ArrayList<
addIdSetsForVariantSpecCategoryFilters(new String[]{"0/1", "1/1"}, path, patientsInScope, bucketCache);
return patientsInScope.stream();
} else {
return (Stream<Integer>) getCube(path).keyBasedIndex().stream();
try {
return (Stream<Integer>) getCube(path).keyBasedIndex().stream();
} catch (InvalidCacheLoadException e) {
// return an empty stream if this concept doesn't exist
return Stream.empty();
}
}
}).collect(Collectors.toSet());
filteredIdSets.add(anyRecordOfPatientSet);
Expand Down

0 comments on commit d88c346

Please sign in to comment.