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

This commit is contained in:
nanfeng
2023-12-23 20:47:50 +08:00
committed by GitHub
parent de6c7a792e
commit 5e9e199ca0
2 changed files with 20 additions and 0 deletions

View File

@ -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://:

View File

@ -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:// 使用示例: