[HUDI-1349] spark sql support overwrite use insert_overwrite_table (#2196)
This commit is contained in:
@@ -38,10 +38,12 @@ public enum WriteOperationType {
|
||||
// delete
|
||||
DELETE("delete"),
|
||||
BOOTSTRAP("bootstrap"),
|
||||
// insert overwrite
|
||||
// insert overwrite with static partitioning
|
||||
INSERT_OVERWRITE("insert_overwrite"),
|
||||
// cluster
|
||||
CLUSTER("cluster"),
|
||||
// insert overwrite with dynamic partitioning
|
||||
INSERT_OVERWRITE_TABLE("insert_overwrite_table"),
|
||||
// used for old version
|
||||
UNKNOWN("unknown");
|
||||
|
||||
@@ -72,6 +74,8 @@ public enum WriteOperationType {
|
||||
return DELETE;
|
||||
case "insert_overwrite":
|
||||
return INSERT_OVERWRITE;
|
||||
case "insert_overwrite_table":
|
||||
return INSERT_OVERWRITE_TABLE;
|
||||
default:
|
||||
throw new HoodieException("Invalid value of Type.");
|
||||
}
|
||||
@@ -88,4 +92,4 @@ public enum WriteOperationType {
|
||||
public static boolean isChangingRecords(WriteOperationType operationType) {
|
||||
return operationType == UPSERT || operationType == UPSERT_PREPPED || operationType == DELETE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user