[HUDI-3551] Add the Oracle Cloud Infrastructure (oci) Object Storage URI scheme (#4952)
This commit is contained in:
@@ -67,7 +67,9 @@ public enum StorageSchemes {
|
||||
// JuiceFileSystem
|
||||
JFS("jfs", true),
|
||||
// Baidu Object Storage
|
||||
BOS("bos", false);
|
||||
BOS("bos", false),
|
||||
// Oracle Cloud Infrastructure Object Storage
|
||||
OCI("oci", false);
|
||||
|
||||
private String scheme;
|
||||
private boolean supportsAppend;
|
||||
|
||||
@@ -49,6 +49,7 @@ public class TestStorageSchemes {
|
||||
assertFalse(StorageSchemes.isAppendSupported("bos"));
|
||||
assertFalse(StorageSchemes.isAppendSupported("ks3"));
|
||||
assertTrue(StorageSchemes.isAppendSupported("ofs"));
|
||||
assertTrue(StorageSchemes.isAppendSupported("oci"));
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
StorageSchemes.isAppendSupported("s2");
|
||||
}, "Should throw exception for unsupported schemes");
|
||||
|
||||
Reference in New Issue
Block a user