Skip to content

Commit 326ea85

Browse files
author
umi
committed
rm
1 parent 94b048d commit 326ea85

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

crates/paimon/src/catalog/rest/rest_token_file_io.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,8 @@ impl RESTTokenFileIO {
9393
match token_guard.as_ref() {
9494
Some(token) => {
9595
// Merge catalog options (base) with token credentials (override)
96-
// token.token["fs.oss.endpoint"] = oss-cn-hangzhou.aliyuncs.com
97-
let mut token_with_endpoint = token.token.clone();
98-
token_with_endpoint.insert(
99-
"fs.oss.endpoint".to_string(),
100-
"oss-cn-hangzhou.aliyuncs.com".to_string(),
101-
);
102-
let base = self.catalog_options.to_map().clone();
103-
let merged_props = RESTUtil::merge(Some(&base), Some(&token_with_endpoint));
96+
let merged_props =
97+
RESTUtil::merge(Some(self.catalog_options.to_map()), Some(&token.token));
10498
// Build FileIO with merged properties
10599
let mut builder = FileIO::from_path(&self.path)?;
106100
builder = builder.with_props(merged_props);

0 commit comments

Comments
 (0)