adding changes to Compiler to support AVRO UNIONs