ydb-python-sdk
ydb-python-sdk copied to clipboard
getting index type
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Pull request type
Please check the type of change your PR introduces:
- [ ] Bugfix
- [x] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes
- [ ] Other (please describe):
What is the current behavior?
Метод session.describe_table возвращает в том числе объекты, описывающие индексы таблицы - TableIndex. Этот объект не содержит информации о типе индекса (синхронный или асинхронный), хотя эта информация есть в protobuf сообщении, на основе которого формируется объект.
Issue Number: #351
What is the new behavior?
TableIndex содержать поле type - enum, описывающий тип индекса.
Привет! Спасибо за патч. Можешь, пожалуйста, ещё тестом это покрыть?)
@Valeria1235, Hi! I tried to use the same approach, but I get nither global_async_index
nor global_index
from the describe_table
, it seems like the server doesn't set this "oneof" field at all. Could you check it, please
@Valeria1235, Hi! I tried to use the same approach, but I get nither
global_async_index
norglobal_index
from thedescribe_table
, it seems like the server doesn't set this "oneof" field at all. Could you check it, please
Hi! I was just only reviewed this patch and as you can see there are no one tests cases. So perhaps it's no longer working or relevant.