xiarixiaoyao commented on a change in pull request #3668: URL: https://github.com/apache/hudi/pull/3668#discussion_r717191016
########## File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/AbstractHoodieWriteClient.java ########## @@ -213,6 +224,27 @@ protected void commit(HoodieTable table, String commitActionType, String instant List<HoodieWriteStat> stats) throws IOException { LOG.info("Committing " + instantTime + " action " + commitActionType); HoodieActiveTimeline activeTimeline = table.getActiveTimeline(); + // do save internal schema to support Implicitly add columns in write process + if (!metadata.getExtraMetadata().containsKey(InternalSchemaParser.LATESTSCHEMA) && metadata.getExtraMetadata().containsKey(SCHEMA_KEY)) { Review comment: if we donot modify the table schema explicitly. LATESTSCHEMA is only produced when we do alter SQL or alter api. -- 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