Skip to content

[C++][FS][Azure] Implement Move() #38704

Closed

Description

@kou

Describe the enhancement requested

It's not implemented yet.

This is a child of GH-18014.

Component(s)

C++

Activity

  1. Tom-Newton commented on Nov 20, 2023

    @Tom-Newton
    Contributor

    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.

  2. nosterlu commented on Nov 23, 2023

    @nosterlu

    Maybe copy and then delete? That is at least how I have solved it previously with adlfs and Azure 😅

  3. Tom-Newton commented on Nov 23, 2023

    @Tom-Newton
    Contributor

    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 🙂.

  4. self-assigned this
    on Jan 9, 2024
  5. felipecrv commented on Jan 9, 2024

    @felipecrv
    Contributor

    @kou if you haven't started to work on this one I'm happy to take it.

  6. kou commented on Jan 10, 2024

    @kou
    MemberAuthor

    I haven't. Please do it!

  7. av8or1 commented on Jan 30, 2024

    @av8or1
    Contributor

    felipecrv - Did you begin work on this one?

  8. felipecrv commented on Jan 31, 2024

    @felipecrv
    Contributor

    felipecrv - Did you begin work on this one?

    Yes. I'm very close to sending a PR.

  9. added a commit that references this issue on Feb 10, 2024
  10. added this to the 16.0.0 milestone on Feb 10, 2024
  11. added a commit that references this issue on Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions