Skip to content

Commit 2077360

Browse files
committed
YDB convert support EmptyDict, EmptyList types
1 parent acd4105 commit 2077360

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ydb/convert.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ def _pb_to_void(type_pb, value_pb, table_client_settings):
106106
"dict_type": _pb_to_dict,
107107
"struct_type": _pb_to_struct,
108108
"void_type": _pb_to_void,
109+
"empty_list_type": _pb_to_list,
110+
"empty_dict_type": _pb_to_dict,
109111
}
110112

111113

@@ -295,7 +297,7 @@ def __init__(self, columns, rows, truncated, snapshot=None):
295297
@classmethod
296298
def from_message(cls, message, table_client_settings=None, snapshot=None):
297299
rows = []
298-
# prepare columnn parsers before actuall parsing
300+
# prepare column parsers before actuall parsing
299301
column_parsers = []
300302
if len(message.rows) > 0:
301303
for column in message.columns:

0 commit comments

Comments
 (0)