Skip to content

Commit 47b0460

Browse files
committed
Add data_columns support in TableIndex
1 parent ce35b84 commit 47b0460

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ydb/table.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ def __init__(self, name):
290290
self._pb.name = name
291291
self.name = name
292292
self.index_columns = []
293+
self.data_columns = []
293294
# output only.
294295
self.status = None
295296

@@ -307,6 +308,12 @@ def with_index_columns(self, *columns):
307308
self.index_columns.append(column)
308309
return self
309310

311+
def with_data_columns(self, *columns):
312+
for column in columns:
313+
self._pb.data_columns.append(column)
314+
self.data_columns.append(column)
315+
return self
316+
310317
def to_pb(self):
311318
return self._pb
312319

0 commit comments

Comments
 (0)