Skip to content

Commit

Permalink
Avoid re-encoding row types. (#12491)
Browse files Browse the repository at this point in the history
There is no benefit in decoding these only to recode them to
pass them back to the SDK.
  • Loading branch information
robertwb committed Sep 17, 2020
2 parents 51cb377 + d783c7a commit f4c2734
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,10 @@ def wrapper(self, *args):
class TransformContext(object):

_KNOWN_CODER_URNS = set(
value.urn for key,
value in common_urns.coders.__dict__.items() if not key.startswith('_'))
value.urn for (key, value) in common_urns.coders.__dict__.items()
if not key.startswith('_')
# Length prefix Rows rather than re-coding them.
) - set([common_urns.coders.ROW.urn])

def __init__(
self,
Expand Down

0 comments on commit f4c2734

Please sign in to comment.