1212_SECONDS_IN_DAY = 60 * 60 * 24
1313_EPOCH = datetime (1970 , 1 , 1 )
1414
15- _from_bytes = None
16-
1715
1816def _from_date_number (x , table_client_settings ):
1917 if (
@@ -39,8 +37,6 @@ def _from_json(x, table_client_settings):
3937 and table_client_settings ._native_json_in_result_sets
4038 ):
4139 return json .loads (x )
42- if _from_bytes is not None :
43- return _from_bytes (x , table_client_settings )
4440 return x
4541
4642
@@ -109,7 +105,7 @@ class PrimitiveType(enum.Enum):
109105 Float = _apis .primitive_types .FLOAT , "float_value"
110106
111107 String = _apis .primitive_types .STRING , "bytes_value"
112- Utf8 = _apis .primitive_types .UTF8 , "text_value" , _from_bytes
108+ Utf8 = _apis .primitive_types .UTF8 , "text_value"
113109
114110 Yson = _apis .primitive_types .YSON , "bytes_value"
115111 Json = _apis .primitive_types .JSON , "text_value" , _from_json
@@ -138,7 +134,7 @@ class PrimitiveType(enum.Enum):
138134 _to_interval ,
139135 )
140136
141- DyNumber = _apis .primitive_types .DYNUMBER , "text_value" , _from_bytes
137+ DyNumber = _apis .primitive_types .DYNUMBER , "text_value"
142138
143139 def __init__ (self , idn , proto_field , to_obj = None , from_obj = None ):
144140 self ._idn_ = idn
0 commit comments