rohityadav1993 commented on code in PR #13837: URL: https://github.com/apache/pinot/pull/13837#discussion_r1733342937
########## pinot-connectors/pinot-flink-connector/src/main/java/org/apache/pinot/connector/flink/sink/PinotSinkFunction.java: ########## @@ -119,7 +139,7 @@ public void invoke(T value, Context context) throws Exception { _segmentWriter.collect(_recordConverter.convertToRow(value)); _segmentNumRecord++; - if (_segmentNumRecord > _segmentFlushMaxNumRecords) { + if (_segmentNumRecord >= _segmentFlushMaxNumRecords) { Review Comment: This was a bugfix to make flush happen at `_segmentFlushMaxNumRecords` rows and not `_segmentFlushMaxNumRecords + 1` -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org