hudi-common/src/main/java/org/apache/hudi/avro/HoodieAvroUtils.java
/**
   * Sanitizes Name according to Avro rule for names.
   * Removes characters other than the ones mentioned in https://avro.apache.org/docs/current/spec.html#names .
   * @param name input name
   * @return sanitized name
   */
Sanitizes Name according to Avro rule for names.
Sanitizes Name according to Avro rule for names .
public static String sanitizeName(String name) {
    if (name.substring(0,1).matches(INVALID_AVRO_FIRST_CHAR_IN_NAMES)) {
      name = name.replaceFirst(INVALID_AVRO_FIRST_CHAR_IN_NAMES, MASK_FOR_INVALID_CHARS_IN_NAMES);
    }
    return name.replaceAll(INVALID_AVRO_CHARS_IN_NAMES, MASK_FOR_INVALID_CHARS_IN_NAMES);
  }
public static String sanitizeName ( String name ) { if ( name . substring ( 0 , 1 ) . matches ( INVALID_AVRO_FIRST_CHAR_IN_NAMES ) ) { name = name . replaceFirst ( INVALID_AVRO_FIRST_CHAR_IN_NAMES , MASK_FOR_INVALID_CHARS_IN_NAMES ) ; } return name . replaceAll ( INVALID_AVRO_CHARS_IN_NAMES , MASK_FOR_INVALID_CHARS_IN_NAMES ) ; }
Sanitizes Name according to Avro rule for names.
Sanitizes Name according to Avro rule for names .