1
0

[HUDI-871] Add support for Tencent Cloud Object Storage(COS) (#1855)

Co-authored-by: deyzhong <deyzhong@tencent.com>
This commit is contained in:
DeyinZhong
2020-07-22 17:40:19 +08:00
committed by GitHub
parent 5e7ab11e2e
commit 743ef322b8
2 changed files with 4 additions and 1 deletions

View File

@@ -47,7 +47,9 @@ public enum StorageSchemes {
// View FS for federated setups. If federating across cloud stores, then append support is false
VIEWFS("viewfs", true),
//ALLUXIO
ALLUXIO("alluxio", false);
ALLUXIO("alluxio", false),
// Tencent Cloud Object Storage
COSN("cosn", false);
private String scheme;
private boolean supportsAppend;

View File

@@ -41,6 +41,7 @@ public class TestStorageSchemes {
assertFalse(StorageSchemes.isAppendSupported("oss"));
assertTrue(StorageSchemes.isAppendSupported("viewfs"));
assertFalse(StorageSchemes.isAppendSupported("alluxio"));
assertFalse(StorageSchemes.isAppendSupported("cosn"));
assertThrows(IllegalArgumentException.class, () -> {
StorageSchemes.isAppendSupported("s2");
}, "Should throw exception for unsupported schemes");