12
12
_SECONDS_IN_DAY = 60 * 60 * 24
13
13
_EPOCH = datetime (1970 , 1 , 1 )
14
14
15
- _from_bytes = None
16
-
17
15
18
16
def _from_date_number (x , table_client_settings ):
19
17
if (
@@ -39,8 +37,6 @@ def _from_json(x, table_client_settings):
39
37
and table_client_settings ._native_json_in_result_sets
40
38
):
41
39
return json .loads (x )
42
- if _from_bytes is not None :
43
- return _from_bytes (x , table_client_settings )
44
40
return x
45
41
46
42
@@ -109,7 +105,7 @@ class PrimitiveType(enum.Enum):
109
105
Float = _apis .primitive_types .FLOAT , "float_value"
110
106
111
107
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"
113
109
114
110
Yson = _apis .primitive_types .YSON , "bytes_value"
115
111
Json = _apis .primitive_types .JSON , "text_value" , _from_json
@@ -138,7 +134,7 @@ class PrimitiveType(enum.Enum):
138
134
_to_interval ,
139
135
)
140
136
141
- DyNumber = _apis .primitive_types .DYNUMBER , "text_value" , _from_bytes
137
+ DyNumber = _apis .primitive_types .DYNUMBER , "text_value"
142
138
143
139
def __init__ (self , idn , proto_field , to_obj = None , from_obj = None ):
144
140
self ._idn_ = idn
0 commit comments