xiarixiaoyao commented on code in PR #8026: URL: https://github.com/apache/hudi/pull/8026#discussion_r1115542396
########## hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieBaseRelation.scala: ########## @@ -155,12 +158,13 @@ abstract class HoodieBaseRelation(val sqlContext: SQLContext, } } + val avroNameAndSpace = AvroConversionUtils.getAvroRecordNameAndNamespace(tableName) val avroSchema = internalSchemaOpt.map { is => - AvroInternalSchemaConverter.convert(is, "schema") + AvroInternalSchemaConverter.convert(is, avroNameAndSpace._2 + "." + avroNameAndSpace._1) Review Comment: we should pass avroSchema.getFullName to this convert Otherwise, the schema converted by the converter will be incompatible with the real schema of the hodie table -- 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