File tree Expand file tree Collapse file tree
crates/paimon/src/catalog/rest Expand file tree Collapse file tree Original file line number Diff line number Diff 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) ;
You can’t perform that action at this time.
0 commit comments