-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Feature Request
Add support for directory renaming in YDB Python SDK. Currently, users can rename tables but lack the ability to rename directories containing topics (e.g., moving /tplatform-replication/old_dir/... to /tplatform-replication/new_dir/...). This forces manual topic recreation and migration, causing operational overhead.
Describe Preferred Solution
Implement a directory renaming method in the YDB Python SDK that:
Allows atomic renaming of directories (e.g., rename_directory(old_path, new_path)).
Preserves all contained topics/tables without data loss or recreation.
Mirrors existing table-rename functionality for consistency.
Describe Alternatives
Current workarounds involve:
Creating new topics in the target directory.
Redirecting producers/consumers to the new paths.
Deleting the original topics and directories after draining.
This is error-prone, requires downtime, and complicates queue management.