This repository was archived by the owner on Mar 6, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2128,9 +2128,14 @@ def to_api_repr(self):
21282128 return self ._properties
21292129
21302130 def _key (self ):
2131+ # because we are only "renaming" top level keys shallow copy is sufficient here.
21312132 properties = self ._properties .copy ()
21322133 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" ))
2136+ if "field" in properties .keys ():
2137+ # calling repr for non built-in type objects.
2138+ properties ["field" ] = repr (properties ["field" ])
21342139 if "requirePartitionFilter" in properties .keys ():
21352140 properties ["require_partition_filter" ] = properties .pop ("requirePartitionFilter" )
21362141 if "expirationMs" in properties .keys ():
@@ -2149,7 +2154,7 @@ def __hash__(self):
21492154 return hash (self ._key ())
21502155
21512156 def __repr__ (self ):
2152- key_vals = ["{}={}" .format (key , repr ( val ) ) for key , val in self ._key ()]
2157+ key_vals = ["{}={}" .format (key , val ) for key , val in self ._key ()]
21532158 return "TimePartitioning({})" .format ("," .join (key_vals ))
21542159
21552160
You can’t perform that action at this time.
0 commit comments