public static Optional < Schema > removeUncomparableFields ( Schema schema ) { return removeUncomparableFields ( schema , Sets . < Schema > newHashSet ( ) ) ; }
Remove map array enum fields as well as union fields that contain map array or enum from an Avro schema . A schema with these fields cannot be used as Mapper key in a MapReduce job .