Skip to content

feature: Add Directory Renaming Support for Topics in Python SDK #710

@krasnovdm

Description

@krasnovdm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions