vinothchandar commented on a change in pull request #4091:
URL: https://github.com/apache/hudi/pull/4091#discussion_r756343584



##########
File path: 
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieArchivedTimeline.java
##########
@@ -173,8 +174,11 @@ private String getMetadataKey(String action) {
         return "hoodieSavePointMetadata";
       case HoodieTimeline.COMPACTION_ACTION:
         return "hoodieCompactionPlan";
+      case HoodieTimeline.REPLACE_COMMIT_ACTION:
+        return "hoodieReplaceCommitMetadata";
       default:
-        throw new HoodieIOException("Unknown action in metadata " + action);
+        LOG.error(String.format("Unknown action in metadata (%s)", action));
+        return null;

Review comment:
       Can we return an Option instead of null

##########
File path: 
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieArchivedTimeline.java
##########
@@ -173,8 +174,11 @@ private String getMetadataKey(String action) {
         return "hoodieSavePointMetadata";
       case HoodieTimeline.COMPACTION_ACTION:
         return "hoodieCompactionPlan";
+      case HoodieTimeline.REPLACE_COMMIT_ACTION:
+        return "hoodieReplaceCommitMetadata";

Review comment:
       yeah adding an `insert_overwrite` operation would also generate a 
replacecommit. don't even need clustering




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