This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 3f733ceb791 branch-3.0: [improvement](cloud) enable s3 load from
volcano engine object storag… #51794 (#51909)
3f733ceb791 is described below
commit 3f733ceb7915e7389933999de68f68fb815c7a62
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jun 20 09:51:28 2025 +0800
branch-3.0: [improvement](cloud) enable s3 load from volcano engine object
storag… #51794 (#51909)
Cherry-picked from #51794
Co-authored-by: HonestManXin <[email protected]>
---
.../org/apache/doris/cloud/storage/RemoteBase.java | 2 ++
.../org/apache/doris/cloud/storage/TosRemote.java | 42 ++++++++++++++++++++++
2 files changed, 44 insertions(+)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/cloud/storage/RemoteBase.java
b/fe/fe-core/src/main/java/org/apache/doris/cloud/storage/RemoteBase.java
index a1bbf656404..cad8dcb6f02 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/cloud/storage/RemoteBase.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/cloud/storage/RemoteBase.java
@@ -153,6 +153,8 @@ public abstract class RemoteBase {
return new BosRemote(obj);
case AZURE:
return new AzureRemote(obj);
+ case TOS:
+ return new TosRemote(obj);
default:
throw new Exception("current not support obj : " +
obj.toString());
}
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/cloud/storage/TosRemote.java
b/fe/fe-core/src/main/java/org/apache/doris/cloud/storage/TosRemote.java
new file mode 100644
index 00000000000..4e1969455c2
--- /dev/null
+++ b/fe/fe-core/src/main/java/org/apache/doris/cloud/storage/TosRemote.java
@@ -0,0 +1,42 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package org.apache.doris.cloud.storage;
+
+import org.apache.doris.common.DdlException;
+
+import org.apache.commons.lang3.tuple.Triple;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+
+
+public class TosRemote extends DefaultRemote {
+ private static final Logger LOG = LogManager.getLogger(TosRemote.class);
+
+ public TosRemote(ObjectInfo obj) {
+ super(obj);
+ }
+
+ public String getPresignedUrl(String fileName) {
+ throw new UnsupportedOperationException("not unsupported for tos yet");
+ }
+
+ @Override
+ public Triple<String, String, String> getStsToken() throws DdlException {
+ throw new DdlException("Get sts token for tos is unsupported");
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]