File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -1471,13 +1471,17 @@ pub async fn create_iceberg_engine_table(
1471
1471
} ) ?;
1472
1472
let meta_store_backend = meta_store_endpoint. scheme ( ) . to_owned ( ) ;
1473
1473
let meta_store_user = meta_store_endpoint. username ( ) . to_owned ( ) ;
1474
- let meta_store_password = meta_store_endpoint
1475
- . password ( )
1476
- . and_then ( |p| percent_decode_str ( p) . decode_utf8 ( ) . ok ( ) )
1477
- . ok_or_else ( || {
1478
- ErrorCode :: InternalError ( "failed to parse password from meta store endpoint" . to_owned ( ) )
1479
- } ) ?
1480
- . into_owned ( ) ;
1474
+ let meta_store_password = match meta_store_endpoint. password ( ) {
1475
+ Some ( password) => percent_decode_str ( password)
1476
+ . decode_utf8 ( )
1477
+ . map_err ( |_| {
1478
+ ErrorCode :: InternalError (
1479
+ "failed to parse password from meta store endpoint" . to_owned ( ) ,
1480
+ )
1481
+ } ) ?
1482
+ . into_owned ( ) ,
1483
+ None => "" . to_string ( ) ,
1484
+ } ;
1481
1485
let meta_store_host = meta_store_endpoint
1482
1486
. host_str ( )
1483
1487
. ok_or_else ( || {
You can’t perform that action at this time.
0 commit comments