Description
Quite often, when I declare mapreduce jobs I have to create the union of two or three schemas. For example:
AvroJob.setMapOutputKeySchema(job, Schema.createUnion(Arrays.asList(Foo.SCHEMA$, Bar.SCHEMA$))
Having Schema.createUnion only accept a List hurts readability and force users to write boilerplate code for such trivial, but I believe common, use cases. It would be create to add Schema.createUnion(Schema... type)