Skip to content

Commit

Permalink
fix(nimtable): fix database path (#19182)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 authored Nov 4, 2024
1 parent e6568e7 commit 30fbc6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/connector/src/connector_common/iceberg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl IcebergCommon {
"To create an iceberg engine table, NIMTABLE_DATA_DIRECTORY needed to be set"
);
};
let warehouse_path = format!("s3://{}/{}/nimtable", s3_bucket, data_directory);
let warehouse_path = format!("s3://{}/{}/nimtable/{}", s3_bucket, data_directory, self.database_name.clone().unwrap());

let (bucket, _) = {
let url = Url::parse(&warehouse_path)
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/handler/create_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ pub async fn handle_create_table(
}
};

let warehouse_path = format!("s3://{}/{}/nimtable", s3_bucket, data_directory);
let warehouse_path = format!("s3://{}/{}/nimtable/{}", s3_bucket, data_directory, iceberg_catalog_name);

let mut sink_handler_args = handler_args.clone();
let mut with = BTreeMap::new();
Expand Down

0 comments on commit 30fbc6b

Please sign in to comment.