voonhous commented on code in PR #19159:
URL: https://github.com/apache/hudi/pull/19159#discussion_r3522947321


##########
hudi-cli/src/main/java/org/apache/hudi/cli/commands/TableCommand.java:
##########
@@ -206,7 +206,7 @@ public String fetchTableSchema(
     TableSchemaResolver tableSchemaResolver = new TableSchemaResolver(client);
     HoodieSchema schema = tableSchemaResolver.getTableSchema();
     if (outputFilePath != null) {
-      log.info("Latest table schema : " + schema.toString(true));
+      log.info("Latest table schema : {}", schema.toString(true));

Review Comment:
   Good catch - `schema.toString(true)` was serialized twice in that branch. 
Extracted it to a local `schemaStr` and passed it to both the log and 
`writeToFile`.
   



-- 
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]

Reply via email to