You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/07/30 17:26:26 UTC

[GitHub] [beam] xinyuiscool commented on a change in pull request #15236: [BEAM-12671] Mark known composite transforms native

xinyuiscool commented on a change in pull request #15236:
URL: https://github.com/apache/beam/pull/15236#discussion_r680108811



##########
File path: runners/samza/src/main/java/org/apache/beam/runners/samza/translation/SamzaPortablePipelineTranslator.java
##########
@@ -85,4 +91,23 @@ public static void createConfig(
       }
     }
   }
+
+  public static Set<String> knownUrns() {
+    return TRANSLATORS.keySet();
+  }
+
+  /** Registers Samza translators. */
+  @AutoService(SamzaPortableTranslatorRegistrar.class)

Review comment:
       Seems to me introducing another translator registrar just for portable runner is not needed. The urns are the same, and the logic are already present inside the current translators. Introducing another registrar is more error-prune as the same translator has to be registered twice, in different places. It's also easy to forget registering, as I think we already miss the WindowAssign translation here. I wouldn't recommend having an extra registrar.




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