danny0405 commented on code in PR #11914:
URL: https://github.com/apache/hudi/pull/11914#discussion_r1769519877
##########
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/SchemaEvolutionContext.java:
##########
@@ -139,7 +186,10 @@ public void
doEvolutionForRealtimeInputFormat(AbstractRealtimeRecordReader realt
return;
}
if (internalSchemaOption.isPresent()) {
- Schema tableAvroSchema = new
TableSchemaResolver(metaClient).getTableAvroSchema();
+ Schema tableAvroSchema = getAvroSchemaFromCache();
+ if (tableAvroSchema == null) {
Review Comment:
When `internalSchemaOption.isPresent()`, the `getAvroSchemaFromCache()`
should also exists, this is decided by the cache.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]