jonvex commented on code in PR #8638: URL: https://github.com/apache/hudi/pull/8638#discussion_r1202691156
########## hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/AvroConversionUtils.scala: ########## @@ -138,18 +139,26 @@ object AvroConversionUtils { def convertStructTypeToAvroSchema(structType: DataType, structName: String, recordNamespace: String): Schema = { - val schemaConverters = sparkAdapter.getAvroSchemaConverters - val avroSchema = schemaConverters.toAvroType(structType, nullable = false, structName, recordNamespace) - getAvroSchemaWithDefaults(avroSchema, structType) + try { + val schemaConverters = sparkAdapter.getAvroSchemaConverters + val avroSchema = schemaConverters.toAvroType(structType, nullable = false, structName, recordNamespace) Review Comment: I don't think we can. It looks like it's a spark internal class -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org