Skip to content

Commit 99f449f

Browse files
authored
use COLUMN_STORE in scheme client in python sdk
1 parent 9aad87a commit 99f449f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ydb/scheme.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class SchemeEntryType(enum.IntEnum):
1919
RTMR_VOLUME = 5
2020
BLOCK_STORE_VOLUME = 6
2121
COORDINATION_NODE = 7
22+
COLUMN_STORE = 12
2223
COLUMN_TABLE = 13
2324
SEQUENCE = 15
2425
REPLICATION = 16
@@ -54,6 +55,14 @@ def is_column_table(entry):
5455
"""
5556
return entry == SchemeEntryType.COLUMN_TABLE
5657

58+
@staticmethod
59+
def is_column_store(entry):
60+
"""
61+
:param entry: A scheme entry to check
62+
:return: True if scheme entry is a column store and False otherwise
63+
"""
64+
return entry == SchemeEntryType.COLUMN_STORE
65+
5766
@staticmethod
5867
def is_row_table(entry):
5968
"""
@@ -128,6 +137,12 @@ def is_directory(self):
128137
"""
129138
return SchemeEntryType.is_directory(self.type)
130139

140+
def is_column_store(self):
141+
"""
142+
:return: True if scheme entry is a column store and False otherwise
143+
"""
144+
return SchemeEntryType.is_column_store(self.type)
145+
131146
def is_table(self):
132147
"""
133148
:return: True if scheme entry is a row table and False otherwise (same as is_row_table)

0 commit comments

Comments
 (0)