Skip to content

Commit 9b1e622

Browse files
committed
clean up iceberg path discrepancy
1 parent 9d07ff0 commit 9b1e622

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

native/core/src/execution/operators/iceberg_scan.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,11 @@ fn build_s3_credential_loader(metadata_location: &str) -> Option<CustomAwsCreden
246246
}
247247
let url = url::Url::parse(metadata_location).ok()?;
248248
let bucket = url.host_str()?.to_string();
249+
// Pass the URL path component (matches `s3.rs::create_store`); SPI vendors expect the
250+
// (bucket, path) pair to compose into a single URI without re-parsing a scheme out.
249251
let bridge = CometCredentialBridge::new(
250252
bucket,
251-
metadata_location.to_string(),
253+
url.path().to_string(),
252254
comet_credential_bridge::AccessMode::Read,
253255
);
254256
Some(CustomAwsCredentialLoader::new(bridge))

0 commit comments

Comments
 (0)