J-HowHuang commented on code in PR #18834:
URL: https://github.com/apache/pinot/pull/18834#discussion_r3456203373


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/impl/inv/geospatial/OffHeapH3IndexCreator.java:
##########
@@ -113,7 +115,7 @@ public void seal()
     }
 
     // Flush the last chunk
-    if (_postingListMap.size() % FLUSH_THRESHOLD != 0) {
+    if (!_postingListMap.isEmpty() && _postingListMap.size() % FLUSH_THRESHOLD 
!= 0) {

Review Comment:
   oh yeah this one is a different check. thanks for pointing out



-- 
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