You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "nickuncaged1201 (via GitHub)" <gi...@apache.org> on 2023/05/04 23:11:46 UTC

[GitHub] [beam] nickuncaged1201 commented on a diff in pull request #26560: Added dlq and error metrics to kafka read schema transform (partially)

nickuncaged1201 commented on code in PR #26560:
URL: https://github.com/apache/beam/pull/26560#discussion_r1185591873


##########
sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/KafkaReadSchemaTransformProvider.java:
##########
@@ -102,7 +115,37 @@ public List<String> inputCollectionNames() {
 
   @Override
   public List<String> outputCollectionNames() {
-    return Lists.newArrayList("output");
+    return Arrays.asList("output", "errors");
+  }
+
+  public static class ErrorFn extends DoFn<byte[], Row> {

Review Comment:
   nit: I think putting this under the SchemaTransform is a better way since it's closer to where the class is needed. 



-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org