Skip to content

Commit b88e864

Browse files
committed
fix
1 parent 247d0ce commit b88e864

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/frontend/src/handler/create_table.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,13 +1471,17 @@ pub async fn create_iceberg_engine_table(
14711471
})?;
14721472
let meta_store_backend = meta_store_endpoint.scheme().to_owned();
14731473
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+
};
14811485
let meta_store_host = meta_store_endpoint
14821486
.host_str()
14831487
.ok_or_else(|| {

0 commit comments

Comments
 (0)