Abacn commented on code in PR #37937:
URL: https://github.com/apache/beam/pull/37937#discussion_r3168864305


##########
examples/java/src/main/java/org/apache/beam/examples/ViewExample.java:
##########
@@ -112,9 +113,11 @@ public LogOutput(String prefix) {
     }
 
     @ProcessElement
-    public void processElement(ProcessContext c) throws Exception {
-      LOG.info("{}{}", prefix, c.element());
-      c.output(c.element());
+    public void processElement(
+        @Element KV<String, String> element, OutputReceiver<KV<String, 
String>> receiver)

Review Comment:
   This is wrong. a DoFn of generic `DoFn<T, T>` shouldn't have `KV<String, 
String>` element



-- 
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]

Reply via email to