Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](doc) Add the usage example of bos to the documentation of s3 tvf #28899

Merged
merged 1 commit into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading