Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Functionality to copy DataSocket instance and change its related path #455

Open
Jupetus opened this issue Jul 19, 2024 · 0 comments
Assignees
Labels
code/new-feature New feature or request

Comments

@Jupetus
Copy link
Contributor

Jupetus commented Jul 19, 2024

We usually generate new Datasockets based on existing sockets. It would be helpful to have method that returns instance of DataSocket and returns copy of it with new path.

e.g.

old_socket = AdlsGen2Path.from_hdfs_path("abfss://container@account.dfs.core.windows.net/folder/file")
new_socket = old_socket.update_path('folder/new_file_2')
print(old_socket)
print(new_socket)

Sockets should be identical apart from new socket having .path attribute folder/new_file_2

@Jupetus Jupetus added the code/new-feature New feature or request label Jul 19, 2024
@george-zubrienko george-zubrienko self-assigned this Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code/new-feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants