[fix](doc) Add the usage example of bos to the documentation of s3 tvf (#28899)
This commit is contained in:
@ -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://:
|
||||
|
||||
@ -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:// 使用示例:
|
||||
|
||||
Reference in New Issue
Block a user