Skip to content

Commit

Permalink
fix for no match in star tree
Browse files Browse the repository at this point in the history
Signed-off-by: Bharathwaj G <[email protected]>
  • Loading branch information
bharath-techie committed Feb 27, 2024
1 parent ebb9da1 commit e4397f3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,13 @@ public StarTreeFilter(
// 1706268600 / (60*60*1000) * (60*60*1000)
public DocIdSetIterator getStarTreeResult() throws IOException {
StarTreeResult starTreeResult = traverseStarTree();
logger.info("Matched docs in star tree : {}" , starTreeResult.numOfMatchedDocs);
//logger.info("Matched docs in star tree : {}" , starTreeResult.numOfMatchedDocs);
List<DocIdSetIterator> andIterators = new ArrayList<>();
andIterators.add(starTreeResult._matchedDocIds.build().iterator());
DocIdSetIterator docIdSetIterator = andIterators.get(0);
if(starTreeResult.maxMatchedDoc == -1) {
return docIdSetIterator;
}
int docCount = 0;
for (String remainingPredicateColumn : starTreeResult._remainingPredicateColumns) {
// TODO : set to max value of doc values
Expand Down

0 comments on commit e4397f3

Please sign in to comment.