Details

    • Sub-task
    • Status: Open
    • P3
    • Resolution: Unresolved
    • None
    • None
    • sdk-java-core

    Description

      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.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            reuvenlax Reuven Lax
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: