Skip to content

Commit

Permalink
Merge pull request #486 from ydb-platform/update_table_index
Browse files Browse the repository at this point in the history
Add data_columns support in TableIndex
  • Loading branch information
vgvoleg committed Sep 17, 2024
2 parents ce35b84 + 47b0460 commit 58091ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ydb/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 58091ce

Please sign in to comment.