linliu-code commented on code in PR #13533:
URL: https://github.com/apache/hudi/pull/13533#discussion_r2214474603


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/upgrade/EightToNineUpgradeHandler.java:
##########
@@ -30,6 +31,11 @@ public class EightToNineUpgradeHandler implements 
UpgradeHandler {
   @Override
   public Map<ConfigProperty, String> upgrade(HoodieWriteConfig config, 
HoodieEngineContext context,
                                              String instantTime, 
SupportsUpgradeDowngrade upgradeDowngradeHelper) {
+    // If auto upgrade is disabled, set writer version to 8 and return
+    if (!config.autoUpgrade()) {
+      config.setValue(HoodieWriteConfig.WRITE_TABLE_VERSION, 
String.valueOf(HoodieTableVersion.EIGHT.versionCode()));
+      return Collections.emptyMap();
+    }

Review Comment:
   Done.



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