Repository navigation
fix: Azure URI parsing with KeyExtractor function for blobFileIO preprocessing - #562
Conversation
9efcfa6 to
dde5fd8
Compare
KeyExtractor function for blobFileIO preprocessing
| name: "URI with no path", | ||
| input: "abfs://[email protected]", | ||
| expectedKey: "", |
There was a problem hiding this comment.
I followed the Java implementation and it returns an empty string in case of empty/null path.
https://github.com/apache/iceberg/blob/723d0998d69f254822efd6f8939e71c0723aaab2/azure/src/main/java/org/apache/iceberg/azure/adlsv2/ADLSLocation.java#L79
I think in our specific case it is ok to return an error and I'll update the code if we agree on it
There was a problem hiding this comment.
I think an error would be helpful here b/c it's not a valid location for any file that would be tracked in an Iceberg table. Also, the Java implementation could improve its validation logic so there's not a strong reason to copy it here
There was a problem hiding this comment.
I agree, let's update this to return an error in this case
zeroshade
left a comment
There was a problem hiding this comment.
Looks good to me, just the one nitpick to add an error for the empty path case
af6cd73 to
a1b2f69
Compare
Summary
bucketNamefield with injectable KeyExtractor function in blobFileIOadlsKeyExtractorfor Azure schemes using regex pattern from Java implementationTesting
Fixes #561