youngoli commented on a change in pull request #12588:
URL: https://github.com/apache/beam/pull/12588#discussion_r489137571



##########
File path: sdks/go/pkg/beam/core/runtime/exec/coder.go
##########
@@ -81,24 +82,82 @@ func MakeElementEncoder(c *coder.Coder) ElementEncoder {
                return &stringEncoder{}
 
        case coder.Custom:
-               return &customEncoder{
+               enc := &customEncoder{
                        t:   c.Custom.Type,
                        enc: makeEncoder(c.Custom.Enc.Fn),
                }
+               if c.Custom.Name != "schema" {
+                       return enc
+               }
+               // Custom schema coding is shorthand for using beam 
infrastructure
+               // wrapped in a custom coder.

Review comment:
       Yeah that makes more sense to me.




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to