You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by vt...@apache.org on 2026/04/29 17:18:48 UTC

(beam) branch fix-playground-29-apr updated: Fix ViewExample

This is an automated email from the ASF dual-hosted git repository.

Amar3tto pushed a commit to branch fix-playground-29-apr
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/fix-playground-29-apr by this push:
     new 33b37573635 Fix ViewExample
33b37573635 is described below

commit 33b37573635e98e705d32ff3e49acb97392b9b36
Author: Vitaly Terentyev <vi...@akvelon.com>
AuthorDate: Wed Apr 29 21:18:37 2026 +0400

    Fix ViewExample
---
 examples/java/src/main/java/org/apache/beam/examples/ViewExample.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/java/src/main/java/org/apache/beam/examples/ViewExample.java b/examples/java/src/main/java/org/apache/beam/examples/ViewExample.java
index e135742bb37..c06618ff086 100644
--- a/examples/java/src/main/java/org/apache/beam/examples/ViewExample.java
+++ b/examples/java/src/main/java/org/apache/beam/examples/ViewExample.java
@@ -99,12 +99,12 @@ public class ViewExample {
                 .withSideInput("citiesToCountries", citiesToCountriesView));
     // [END main_section]
 
-    output.apply("Log", ParDo.of(new LogOutput<>("Output: ")));
+    output.apply("Log", ParDo.of(new LogOutput("Output: ")));
 
     pipeline.run();
   }
 
-  static class LogOutput<T> extends DoFn<T, T> {
+  static class LogOutput extends DoFn<KV<String, String>, KV<String, String>> {
     private static final Logger LOG = LoggerFactory.getLogger(LogOutput.class);
     private final String prefix;