You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "yihua (via GitHub)" <gi...@apache.org> on 2023/05/30 22:11:37 UTC
[GitHub] [hudi] yihua commented on a diff in pull request #8795: [HUDI-6258] support olap engine query mor table in table name without ro/rt suffix
yihua commented on code in PR #8795:
URL: https://github.com/apache/hudi/pull/8795#discussion_r1210874330
##########
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/HiveSyncTool.java:
##########
@@ -190,6 +190,8 @@ protected void doSync() {
syncHoodieTable(roTableName.get(), false, true);
// sync a RT table for MOR
syncHoodieTable(snapshotTableName, true, false);
+ // sync origin table for MOR
+ syncHoodieTable(tableName, true, false);
Review Comment:
This can collide with the RO table if the `_ro` suffix is skipped for Hive sync. Could you add a feature flag around the new sync logic?
```
this.roTableName = config.getBoolean(HIVE_SKIP_RO_SUFFIX_FOR_READ_OPTIMIZED_TABLE)
? Option.of(tableName)
: Option.of(tableName + SUFFIX_READ_OPTIMIZED_TABLE);
```
##########
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/HiveSyncTool.java:
##########
@@ -190,6 +190,8 @@ protected void doSync() {
syncHoodieTable(roTableName.get(), false, true);
// sync a RT table for MOR
syncHoodieTable(snapshotTableName, true, false);
+ // sync origin table for MOR
+ syncHoodieTable(tableName, true, false);
Review Comment:
Also, can OLAP engine like MySQL query a MOR table with log files?
--
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