Skip to content

Commit

Permalink
make BeamKafkaTable.createKafkaRead to be protected, and we can overr…
Browse files Browse the repository at this point in the history
…ide it appending options to KafkaIO.Read (#29051)
  • Loading branch information
gabrywu authored Oct 19, 2023
1 parent 39678b6 commit 67a39a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public PCollection<Row> buildIOReader(PBegin begin) {
.setRowSchema(getSchema());
}

KafkaIO.Read<byte[], byte[]> createKafkaRead() {
protected KafkaIO.Read<byte[], byte[]> createKafkaRead() {
KafkaIO.Read<byte[], byte[]> kafkaRead;
if (topics != null) {
kafkaRead =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public KafkaTestTable(Schema beamSchema, List<String> topics, int partitionsPerT
}

@Override
KafkaIO.Read<byte[], byte[]> createKafkaRead() {
protected KafkaIO.Read<byte[], byte[]> createKafkaRead() {
return super.createKafkaRead().withConsumerFactoryFn(this::mkMockConsumer);
}

Expand Down

0 comments on commit 67a39a5

Please sign in to comment.