File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2128,9 +2128,11 @@ def to_api_repr(self):
2128
2128
return self ._properties
2129
2129
2130
2130
def _key (self ):
2131
+ # because we are only "renaming" top level keys shallow copy is sufficient here.
2131
2132
properties = self ._properties .copy ()
2132
2133
if "type" in properties .keys ():
2133
- properties ["type_" ] = properties .pop ("type" )
2134
+ # calling repr for non built-in type objects.
2135
+ properties ["type_" ] = repr (properties .pop ("type" ))
2134
2136
if "requirePartitionFilter" in properties .keys ():
2135
2137
properties ["require_partition_filter" ] = properties .pop ("requirePartitionFilter" )
2136
2138
if "expirationMs" in properties .keys ():
@@ -2149,7 +2151,7 @@ def __hash__(self):
2149
2151
return hash (self ._key ())
2150
2152
2151
2153
def __repr__ (self ):
2152
- key_vals = ["{}={}" .format (key , repr ( val ) ) for key , val in self ._key ()]
2154
+ key_vals = ["{}={}" .format (key , val ) for key , val in self ._key ()]
2153
2155
return "TimePartitioning({})" .format ("," .join (key_vals ))
2154
2156
2155
2157
You can’t perform that action at this time.
0 commit comments