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


##########
sdks/java/core/src/main/java/org/apache/beam/sdk/util/construction/ModelCoderRegistrar.java:
##########
@@ -136,4 +137,23 @@ public Map<Class<? extends Coder>, String> getCoderURNs() {
   public Map<Class<? extends Coder>, CoderTranslator<? extends Coder>> 
getCoderTranslators() {
     return BEAM_MODEL_CODERS;
   }
+
+  @Override
+  public boolean isKnownCoder(Coder<?> coder, PipelineOptions options) {
+    if (coder.getClass() == SchemaCoder.class
+        && !ExperimentalOptions.hasExperiment(options, 
"use_known_schema_coder")) {

Review Comment:
   Since we have pipeline options now, we can check runner capability to 
translate to use SchemaCoder only when runner supported it. Then we don't need 
to worry about breaking changes on different runners for now.



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