This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 5e9e199ca0d [fix](doc) Add the usage example of bos to the 
documentation of s3 tvf (#28899)
5e9e199ca0d is described below

commit 5e9e199ca0deffc1bb5a5923efd63b433cf6a647
Author: nanfeng <42513321+nanfeng1...@users.noreply.github.com>
AuthorDate: Sat Dec 23 20:47:50 2023 +0800

    [fix](doc) Add the usage example of bos to the documentation of s3 tvf 
(#28899)
---
 docs/en/docs/sql-manual/sql-functions/table-functions/s3.md    | 10 ++++++++++
 docs/zh-CN/docs/sql-manual/sql-functions/table-functions/s3.md | 10 ++++++++++
 2 files changed, 20 insertions(+)

diff --git a/docs/en/docs/sql-manual/sql-functions/table-functions/s3.md 
b/docs/en/docs/sql-manual/sql-functions/table-functions/s3.md
index c482542595d..e410bf39649 100644
--- a/docs/en/docs/sql-manual/sql-functions/table-functions/s3.md
+++ b/docs/en/docs/sql-manual/sql-functions/table-functions/s3.md
@@ -160,6 +160,16 @@ select * from s3(
     "region" = "ap-hongkong",
     "format" = "parquet",
     "use_path_style" = "false");
+
+// The BOS on Baidu Cloud will use 'virtual-hosted style' compatible with the 
S3 protocol to access s3.
+// BOS
+select * from s3(
+    "uri" = "https://example-bucket.s3.bj.bcebos.com/your-folder/file.parquet";,
+    "s3.access_key"= "ak",
+    "s3.secret_key" = "sk",
+    "s3.region" = "bj",
+    "format" = "parquet",
+    "use_path_style" = "false");
 ```
 
 Example of s3://:
diff --git a/docs/zh-CN/docs/sql-manual/sql-functions/table-functions/s3.md 
b/docs/zh-CN/docs/sql-manual/sql-functions/table-functions/s3.md
index 5a9ffd60404..5ee99684a90 100644
--- a/docs/zh-CN/docs/sql-manual/sql-functions/table-functions/s3.md
+++ b/docs/zh-CN/docs/sql-manual/sql-functions/table-functions/s3.md
@@ -160,6 +160,16 @@ select * from s3(
     "s3.region" = "ap-hongkong",
     "format" = "parquet",
     "use_path_style" = "false");
+
+// 百度云bos采用兼容s3协议的virtual-hosted style方式访问s3。
+// BOS
+select * from s3(
+    "uri" = "https://example-bucket.s3.bj.bcebos.com/your-folder/file.parquet";,
+    "s3.access_key"= "ak",
+    "s3.secret_key" = "sk",
+    "s3.region" = "bj",
+    "format" = "parquet",
+    "use_path_style" = "false");
 ```
 
 s3:// 使用示例:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to