alessandro-nori opened a new issue, #561: URL: https://github.com/apache/iceberg-go/issues/561
### Apache Iceberg version main (development) ### Please describe the bug 🐞 The current implementation of `createBlobFs` in [io/blob.go](https://github.com/apache/iceberg-go/blob/main/io/blob.go) incorrectly handles [Azure Blob Storage URIs](https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-introduction-abfs-uri#uri-syntax), causing a mismatch between the actual object storage paths and those recorded in Iceberg table metadata. This leads to failures when reading the table with engines like Trino or Spark. Currently, createBlobFs takes bucketName and uses it to strip a prefix from the full path of a file. However, in the case of an Azure URI, we need to strip `<bucketName>@<account>.<domain>` instead. ## Example Given: ``` abfss://[email protected]/<key> ``` The file is written to: ``` https://myaccount.blob.core.windows.net/mycontainer/[email protected]/<key> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
