Abacn commented on code in PR #26575:
URL: https://github.com/apache/beam/pull/26575#discussion_r1189168349
##########
sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/KafkaWriteSchemaTransformProvider.java:
##########
@@ -99,13 +144,21 @@ public PCollectionRowTuple expand(PCollectionRowTuple
input) {
: AvroUtils.getRowToAvroBytesFunction(inputSchema);
final Map<String, String> configOverrides =
configuration.getProducerConfigUpdates();
- input
- .get("input")
- .apply(
- "Map Rows to Kafka Messages",
- MapElements.via(
- new SimpleFunction<Row, KV<byte[], byte[]>>(
- row -> KV.of(new byte[1], toBytesFn.apply(row))) {}))
+ PCollectionTuple outputTuple =
+ input
+ .get("input")
+ // .apply(
Review Comment:
what is this commented out code?
--
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]