From 9763a6e4ac7c0c203a4dd2ef179fa26f801b9bef Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Thu, 26 Dec 2024 23:33:43 +0800 Subject: [PATCH] Add example Signed-off-by: Xuanwo --- core/src/docs/rfcs/5444_operator_from_uri.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/docs/rfcs/5444_operator_from_uri.md b/core/src/docs/rfcs/5444_operator_from_uri.md index 807cbaa26cde..a2c0c9def1d7 100644 --- a/core/src/docs/rfcs/5444_operator_from_uri.md +++ b/core/src/docs/rfcs/5444_operator_from_uri.md @@ -28,6 +28,12 @@ let op = Operator::from_uri("s3://my-bucket/path", vec![ ("endpoint".to_string(), "http://localhost:8080"to_string()), ])?; +// Users can pass options through the URI along with additional key-value pairs +// The extra options will override identical options specified in the URI +let op = Operator::from_uri("s3://my-bucket/path?region=us-east-1", vec![ + ("endpoint".to_string(), "http://localhost:8080"to_string()), +])?; + // Create a file system operator let op = Operator::from_uri("fs:///tmp/test", vec![])?; ```