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 2022/06/03 21:14:19 UTC

[GitHub] [beam] kennknowles opened a new issue, #18917: Create a better Schema builder

kennknowles opened a new issue, #18917:
URL: https://github.com/apache/beam/issues/18917

   Right now the Schema builder class is a bit verbose to use. The AddFields transform already contains a nicer way of building schemas, but it's coupled to that transform. We should refactor that code and make it available in the Schema builder. That would allow coder of the form
   
   Schema schema = Schema.builder()
   
               .addField("a", INT32)
   
              .addField("a.b", STRING)
   
             .addField("a.c", INT32).build();
   
    
   
   Which is much more concise for nested fields.
   
    
   
    
   
   Imported from Jira [BEAM-7334](https://issues.apache.org/jira/browse/BEAM-7334). Original Jira may contain additional context.
   Reported by: reuvenlax.
   Subtask of issue #18898


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

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