You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/03/06 17:20:26 UTC

[GitHub] [hudi] pratyakshsharma commented on a change in pull request #4944: Hudi 3554 Support Custom Naming of RO and RT tables for Hudi MOR table

pratyakshsharma commented on a change in pull request #4944:
URL: https://github.com/apache/hudi/pull/4944#discussion_r820262671



##########
File path: hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/HiveSyncTool.java
##########
@@ -98,9 +98,15 @@ public HiveSyncTool(HiveSyncConfig cfg, HiveConf configuration, FileSystem fs) {
           this.roTableName = Option.empty();
           break;
         case MERGE_ON_READ:
-          this.snapshotTableName = cfg.tableName + SUFFIX_SNAPSHOT_TABLE;
-          this.roTableName = cfg.skipROSuffix ? Option.of(cfg.tableName) :
-              Option.of(cfg.tableName + SUFFIX_READ_OPTIMIZED_TABLE);
+          if (cfg.customMorTableName && !StringUtils.isNullOrEmpty(cfg.customRTTableName)
+                  && !StringUtils.isNullOrEmpty(cfg.customROTableName) && !cfg.customRTTableName.equals(cfg.customROTableName)) {

Review comment:
       better to have .equalsIgnoreCase() here?




-- 
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-unsubscribe@hudi.apache.org

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