acrites commented on code in PR #37631:
URL: https://github.com/apache/beam/pull/37631#discussion_r2848678840


##########
sdks/java/core/src/main/java/org/apache/beam/sdk/util/construction/CoderTranslators.java:
##########
@@ -177,6 +194,103 @@ public RowCoder fromComponents(
     };
   }
 
+  static <T> CoderTranslator<SchemaCoder<T>> schema() {
+    return new CoderTranslator<SchemaCoder<T>>() {
+      private static final String TO_ROW_FUNCTION_URN = 
"beam:torowfn:javasdk:v1";
+      private static final String FROM_ROW_FUNCTION_URN = 
"beam:fromrowfn:javasdk:v1";
+      private static final String TYPE_DESCRIPTOR_URN = 
"beam:typedescriptor:javasdk:v1";
+
+      @Override
+      public ImmutableList<? extends Coder<?>> getComponents(SchemaCoder<T> 
from) {
+        return ImmutableList.of();
+      }
+
+      // Used for backwards compatibility with older versions of the SDK.
+      private boolean encodeAsJavaSerializedCoder(TranslationContext context) {
+        if (context instanceof TranslationContextWithOptions) {
+          PipelineOptions options =
+              ((TranslationContextWithOptions) 
context).pipelineOptions().get();
+          if (StreamingOptions.updateCompatibilityVersionLessThan(options, 
"2.72")) {

Review Comment:
   Yeah, I think you're right. It looks like the last time I synced my fork 
CHANGES.md has 2.73 as the next to be released. I'll update all the references.



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