yihua commented on code in PR #8967:
URL: https://github.com/apache/hudi/pull/8967#discussion_r1231297825
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/BaseHoodieWriteClient.java:
##########
@@ -1255,10 +1255,14 @@ protected void
setWriteSchemaForDeletes(HoodieTableMetaClient metaClient) {
throw new HoodieIOException("Latest commit does not have any schema
in commit metadata");
}
} else {
+ String schemaStr = new
TableSchemaResolver(metaClient).getTableAvroSchema().toString();
Review Comment:
The whole method can be replaced by the new logic with try-catch block:
```
String schemaStr = new
TableSchemaResolver(metaClient).getTableAvroSchema().toString();
config.setSchema(schemaStr);
```
--
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]