1
0

[HUDI-1153] Spark DataSource and Streaming Write must fail when operation type is misconfigured (#2014)

This commit is contained in:
Sreeram Ramji
2020-09-04 09:08:30 -07:00
committed by GitHub
parent 8d19ebfd0f
commit 6537af2676
5 changed files with 47 additions and 36 deletions

View File

@@ -71,6 +71,14 @@ public enum WriteOperationType {
}
}
/**
* Getter for value.
* @return string form of WriteOperationType
*/
public String value() {
return value;
}
public static boolean isChangingRecords(WriteOperationType operationType) {
return operationType == UPSERT || operationType == UPSERT_PREPPED || operationType == DELETE;
}