Skip to content

WIP: Alter topic docs for python sdk #6180

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

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion ydb/docs/en/core/reference/ydb-sdk/topic.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,14 @@ When you update a topic, you must specify the topic path and the parameters to b

- Python

This feature is under development.
Example of updating a topic's list of supported codecs and minimum number of partitions:

```python
driver.topic_client.create_topic(topic_path,
set_supported_codecs=[ydb.TopicCodec.RAW, ydb.TopicCodec.GZIP], # optional
set_min_active_partitions=3, # optional
)
```

- Java

Expand Down
11 changes: 9 additions & 2 deletions ydb/docs/ru/core/reference/ydb-sdk/topic.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

[Примеры на GitHub](https://github.com/ydb-platform/ydb-java-examples/tree/master/ydb-cookbook/src/main/java/tech/ydb/examples/topic)

- {Python}
- Python

[Примеры на GitHub](https://github.com/ydb-platform/ydb-python-sdk/tree/main/examples/topic)

Expand Down Expand Up @@ -206,7 +206,14 @@

- Python

Функциональность находится в разработке.
Пример изменения списка поддерживаемых кодеков и минимального количества партиций у топика

```python
driver.topic_client.alter_topic(topic_path,
set_supported_codecs=[ydb.TopicCodec.RAW, ydb.TopicCodec.GZIP], # optional
set_min_active_partitions=3, # optional
)
```

- Java

Expand Down
Loading