private static void inferAvroSchema(Configuration conf, LogicalType rowType) {
        if (!conf.getOptional(FlinkOptions.SOURCE_AVRO_SCHEMA_PATH).isPresent()
                && !conf.getOptional(FlinkOptions.SOURCE_AVRO_SCHEMA).isPresent()) {
            String inferredSchema = AvroSchemaConverter.convertToSchema(rowType).toString();
            conf.setString(FlinkOptions.SOURCE_AVRO_SCHEMA, inferredSchema);
        }
    }
Inferences the deserialization Avro schema from the table schema (e.g. the DDL)
if both options {@link FlinkOptions#SOURCE_AVRO_SCHEMA_PATH} and
{@link FlinkOptions#SOURCE_AVRO_SCHEMA} are not specified.

@param conf    The configuration
@param rowType The specified table row type
inlong-sort/sort-flink/sort-flink-v1.15/sort-connectors/hudi/src/main/java/org/apache/inlong/sort/hudi/table/HoodieTableFactory.java