alexeykudinkin commented on code in PR #6386:
URL: https://github.com/apache/hudi/pull/6386#discussion_r944900491
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java:
##########
@@ -110,11 +110,13 @@ public static OffsetRange[]
computeOffsetRanges(Map<TopicPartition, Long> fromOf
Comparator<OffsetRange> byPartition =
Comparator.comparing(OffsetRange::partition);
// Create initial offset ranges for each 'to' partition, with from = to
offsets.
- OffsetRange[] ranges = new OffsetRange[toOffsetMap.size()];
- toOffsetMap.keySet().stream().map(tp -> {
+ OffsetRange[] ranges = toOffsetMap.keySet().stream().map(tp -> {
Review Comment:
Changed this code to be more easily comprehensible (first time seeing these
puzzled me as to how the array gets updated)
--
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]