Skip to content

Commit

Permalink
storage: Fix canUseThisExecutor on SampleIndexOnlyVariantQueryExecuto…
Browse files Browse the repository at this point in the history
…r #TASK-6436
  • Loading branch information
j-coll committed Jun 28, 2024
1 parent f3ac930 commit e95bae4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,11 @@ protected boolean shouldGetCount(QueryOptions options, boolean iterator) {
private boolean isFullyCoveredQuery(Query inputQuery, QueryOptions options) {
Query query = new Query(inputQuery);

if (!isQueryCovered(query)) {
return false;
}
// ParsedVariantQuery parsedVariantQuery = variantQueryProjectionParser.parseQuery(query, options, true);
SampleIndexQuery sampleIndexQuery = sampleIndexDBAdaptor.parseSampleIndexQuery(query);

return isIncludeCovered(sampleIndexQuery, inputQuery, options);
return isQueryCovered(sampleIndexQuery.getUncoveredQuery())
&& isIncludeCovered(sampleIndexQuery, inputQuery, options);
}

private boolean isQueryCovered(Query query) {
Expand Down

0 comments on commit e95bae4

Please sign in to comment.