Skip to content

Commit

Permalink
[fix](doc) Add the usage example of bos to the documentation of s3 tvf (
Browse files Browse the repository at this point in the history
  • Loading branch information
nanfeng1999 authored Dec 23, 2023
1 parent de6c7a7 commit 5e9e199
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/en/docs/sql-manual/sql-functions/table-functions/s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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://:
Expand Down
10 changes: 10 additions & 0 deletions docs/zh-CN/docs/sql-manual/sql-functions/table-functions/s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:// 使用示例:
Expand Down

0 comments on commit 5e9e199

Please sign in to comment.