[Broker](bos) suppoert baidu bos object storage for broker (#15448)
This commit is contained in:
@ -236,14 +236,16 @@ public class ExportStmt extends StatementBase {
|
||||
URI uri = URI.create(path);
|
||||
String schema = uri.getScheme();
|
||||
if (type == StorageBackend.StorageType.BROKER) {
|
||||
if (schema == null || (!schema.equalsIgnoreCase("hdfs")
|
||||
if (schema == null || (!schema.equalsIgnoreCase("bos")
|
||||
&& !schema.equalsIgnoreCase("afs")
|
||||
&& !schema.equalsIgnoreCase("hdfs")
|
||||
&& !schema.equalsIgnoreCase("ofs")
|
||||
&& !schema.equalsIgnoreCase("obs")
|
||||
&& !schema.equalsIgnoreCase("oss")
|
||||
&& !schema.equalsIgnoreCase("s3a")
|
||||
&& !schema.equalsIgnoreCase("cosn"))) {
|
||||
throw new AnalysisException("Invalid broker path. please use valid 'hdfs://', 'ofs://', 'obs://',"
|
||||
+ "'oss://', 's3a://' or 'cosn://' path.");
|
||||
throw new AnalysisException("Invalid broker path. please use valid 'hdfs://', 'afs://' , 'bos://',"
|
||||
+ " 'ofs://', 'obs://', 'oss://', 's3a://' or 'cosn://' path.");
|
||||
}
|
||||
} else if (type == StorageBackend.StorageType.S3) {
|
||||
if (schema == null || !schema.equalsIgnoreCase("s3")) {
|
||||
|
||||
Reference in New Issue
Block a user