Jackie-Jiang commented on code in PR #16710:
URL: https://github.com/apache/pinot/pull/16710#discussion_r2350000623


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/upsert/BasePartitionUpsertMetadataManager.java:
##########
@@ -905,18 +905,25 @@ protected void doTakeSnapshot() {
           segmentsWithoutSnapshot.add(immutableSegment);
           continue;
         }
+        ThreadSafeMutableRoaringBitmap queryableDocIdsBitMap = null;
+        ThreadSafeMutableRoaringBitmap validDocIdsBitMap =
+            immutableSegment.getValidDocIds() == null ? new 
ThreadSafeMutableRoaringBitmap()

Review Comment:
   When will this be `null`? Should we persist an empty bitmap when it is 
`null`? Empty bitmap means the entire segment should be skipped



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to