1
0

[HUDI-3551] Add the Oracle Cloud Infrastructure (oci) Object Storage URI scheme (#4952)

This commit is contained in:
Carter Shanklin
2022-05-28 08:26:14 -07:00
committed by GitHub
parent 48062a5708
commit 62d792368b
2 changed files with 4 additions and 1 deletions

View File

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

View File

@@ -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");