linliu-code commented on code in PR #12770:
URL: https://github.com/apache/hudi/pull/12770#discussion_r1945301924


##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java:
##########
@@ -124,15 +124,26 @@ public static OffsetRange[] 
computeOffsetRanges(Map<TopicPartition, Long> fromOf
                                                     Map<TopicPartition, Long> 
toOffsetMap,
                                                     long numEvents,
                                                     long minPartitions) {
+      boolean needSplitToMinPartitions = minPartitions > toOffsetMap.size();
+      if (needSplitToMinPartitions && minPartitions % toOffsetMap.size() != 0) 
{

Review Comment:
   If this is the case, then this upstream is no long needed, since this is the 
core of this change. I will abandon this PR.



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

Reply via email to