Skip to content
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

use COLUMN_STORE in scheme client in python sdk #414

Merged
merged 1 commit into from
Apr 11, 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
15 changes: 15 additions & 0 deletions ydb/scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class SchemeEntryType(enum.IntEnum):
RTMR_VOLUME = 5
BLOCK_STORE_VOLUME = 6
COORDINATION_NODE = 7
COLUMN_STORE = 12
COLUMN_TABLE = 13
SEQUENCE = 15
REPLICATION = 16
Expand Down Expand Up @@ -54,6 +55,14 @@ def is_column_table(entry):
"""
return entry == SchemeEntryType.COLUMN_TABLE

@staticmethod
def is_column_store(entry):
"""
:param entry: A scheme entry to check
:return: True if scheme entry is a column store and False otherwise
"""
return entry == SchemeEntryType.COLUMN_STORE

@staticmethod
def is_row_table(entry):
"""
Expand Down Expand Up @@ -128,6 +137,12 @@ def is_directory(self):
"""
return SchemeEntryType.is_directory(self.type)

def is_column_store(self):
"""
:return: True if scheme entry is a column store and False otherwise
"""
return SchemeEntryType.is_column_store(self.type)

def is_table(self):
"""
:return: True if scheme entry is a row table and False otherwise (same as is_row_table)
Expand Down
Loading