You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Reuven Lax (JIRA)" <ji...@apache.org> on 2019/05/16 07:07:00 UTC
[jira] [Created] (BEAM-7334) Create a better Schema builder
Reuven Lax created BEAM-7334:
--------------------------------
Summary: Create a better Schema builder
Key: BEAM-7334
URL: https://issues.apache.org/jira/browse/BEAM-7334
Project: Beam
Issue Type: Sub-task
Components: sdk-java-core
Reporter: Reuven Lax
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)