Skip to content

Commit da5ed26

Browse files
committed
Fix cases where reader was not overwritten when building Kafka reader.
1 parent df4c9c4 commit da5ed26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sdks/java/io/kafka/src/test/java/org/apache/beam/sdk/io/kafka/KafkaIOTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,10 @@ static KafkaIO.Read<Integer, Long> mkKafkaReadTransformBase(
492492
reader = reader.withRedistributeNumKeys(numKeys);
493493
}
494494
if (offsetDeduplication != null && offsetDeduplication) {
495-
reader.withOffsetDeduplication(offsetDeduplication);
495+
reader = reader.withOffsetDeduplication(offsetDeduplication);
496496
}
497497
if (redistributeByRecordKey != null && redistributeByRecordKey) {
498-
reader.withRedistributeByRecordKey(redistributeByRecordKey);
498+
reader = reader.withRedistributeByRecordKey(redistributeByRecordKey);
499499
}
500500
}
501501
return reader;

0 commit comments

Comments
 (0)