code: public static Optional<Schema> removeUncomparableFields(Schema schema) {
      return removeUncomparableFields(schema, Sets.<Schema> newHashSet());
    }
docs: 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.