vinothchandar commented on pull request #1858:
URL: https://github.com/apache/hudi/pull/1858#issuecomment-671083262


   ```
     // set hoodie.table.version to 0 in hoodie.properties file
       metaClient.getTableConfig().setTableVersion(HoodieTableVersion.ZERO);
   
       if (induceResiduesFromPrevUpgrade) {
         createResidualFile();
       }
   
       // should re-create marker files for 2nd commit since its pending. If 
there was any residues, no upgrade steps should happen except for updating the 
hoodie.table.version
       UpgradeDowngrade.run(metaClient, HoodieTableVersion.ONE, cfg, jsc, null);
   ```
   
   @nsivabalan this won't be a no-op for sure IMO. `setTableVersion()` no 
longer persists the version to dfs. just in memory. but for upgrade it does not 
matter, since default is ZERO. 


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to