[MINOR] Add Databricks File System to StorageSchemes (#1877)
This commit is contained in:
@@ -49,7 +49,9 @@ public enum StorageSchemes {
|
||||
//ALLUXIO
|
||||
ALLUXIO("alluxio", false),
|
||||
// Tencent Cloud Object Storage
|
||||
COSN("cosn", false);
|
||||
COSN("cosn", false),
|
||||
// Databricks file system
|
||||
DBFS("dbfs", false);
|
||||
|
||||
private String scheme;
|
||||
private boolean supportsAppend;
|
||||
|
||||
@@ -42,6 +42,7 @@ public class TestStorageSchemes {
|
||||
assertTrue(StorageSchemes.isAppendSupported("viewfs"));
|
||||
assertFalse(StorageSchemes.isAppendSupported("alluxio"));
|
||||
assertFalse(StorageSchemes.isAppendSupported("cosn"));
|
||||
assertFalse(StorageSchemes.isAppendSupported("dbfs"));
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
StorageSchemes.isAppendSupported("s2");
|
||||
}, "Should throw exception for unsupported schemes");
|
||||
|
||||
Reference in New Issue
Block a user