From 47b04602ab0ac5ce4fa77c42b95051035267c7b6 Mon Sep 17 00:00:00 2001 From: Oleg Ovcharuk Date: Tue, 17 Sep 2024 15:59:19 +0300 Subject: [PATCH] Add data_columns support in TableIndex --- ydb/table.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ydb/table.py b/ydb/table.py index cfcffb17..01f5e52b 100644 --- a/ydb/table.py +++ b/ydb/table.py @@ -290,6 +290,7 @@ def __init__(self, name): self._pb.name = name self.name = name self.index_columns = [] + self.data_columns = [] # output only. self.status = None @@ -307,6 +308,12 @@ def with_index_columns(self, *columns): self.index_columns.append(column) return self + def with_data_columns(self, *columns): + for column in columns: + self._pb.data_columns.append(column) + self.data_columns.append(column) + return self + def to_pb(self): return self._pb