Skip to content

Add data_columns support in TableIndex #486

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 1 commit into from
Sep 17, 2024
Merged
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
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
Loading