You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a potential complication with move. Azure blob storage does support efficient server side only moves.... but only if using SAS token authentication for the source file. Alternatively everything will need to be downloaded and re-uploaded, but that should work with any authentication.
Activity
Tom-Newton commentedon Nov 20, 2023
This is a potential complication with move. Azure blob storage does support efficient server side only moves.... but only if using SAS token authentication for the source file. Alternatively everything will need to be downloaded and re-uploaded, but that should work with any authentication.
nosterlu commentedon Nov 23, 2023
Maybe copy and then delete? That is at least how I have solved it previously with adlfs and Azure 😅
Tom-Newton commentedon Nov 23, 2023
Sorry, I don't think I was thinking very carefully when I posted that comment.
I think move is efficiently supported with hierarchical namespace. E.g. using https://github.com/Azure/azure-sdk-for-cpp/blob/4a32d7266cfac8bfc0eb87feb56011361a36f43c/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp#L239
What I was thinking of was the copy blob by URI which has to use SAS token auth. But if we're only copying within one storage account we don't need to use that. There is another copy blob API we can use https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob?tabs=microsoft-entra-id#authorization. So I don't think there is any auth complication. We can use copy followed by delete as you say 🙂.
felipecrv commentedon Jan 9, 2024
@kou if you haven't started to work on this one I'm happy to take it.
kou commentedon Jan 10, 2024
I haven't. Please do it!
av8or1 commentedon Jan 30, 2024
felipecrv - Did you begin work on this one?
felipecrv commentedon Jan 31, 2024
Yes. I'm very close to sending a PR.
GH-38704: [C++] Implement Azure FileSystem Move() via Azure DataLake …
apacheGH-38704: [C++] Implement Azure FileSystem Move() via Azure Dat…