From 20773606ed65148a6230a77f35a1b8934b066f2d Mon Sep 17 00:00:00 2001 From: Maksim Kita Date: Tue, 25 Apr 2023 11:13:05 +0300 Subject: [PATCH] YDB convert support EmptyDict, EmptyList types --- ydb/convert.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ydb/convert.py b/ydb/convert.py index 095822cd..4a1b007f 100644 --- a/ydb/convert.py +++ b/ydb/convert.py @@ -106,6 +106,8 @@ def _pb_to_void(type_pb, value_pb, table_client_settings): "dict_type": _pb_to_dict, "struct_type": _pb_to_struct, "void_type": _pb_to_void, + "empty_list_type": _pb_to_list, + "empty_dict_type": _pb_to_dict, } @@ -295,7 +297,7 @@ def __init__(self, columns, rows, truncated, snapshot=None): @classmethod def from_message(cls, message, table_client_settings=None, snapshot=None): rows = [] - # prepare columnn parsers before actuall parsing + # prepare column parsers before actuall parsing column_parsers = [] if len(message.rows) > 0: for column in message.columns: