Abacn commented on code in PR #22233:
URL: https://github.com/apache/beam/pull/22233#discussion_r961916145
##########
sdks/python/apache_beam/coders/row_coder.py:
##########
@@ -162,6 +164,8 @@ def _nonnull_coder_from_type(field_type):
return BooleanCoder()
elif field_type.atomic_type == schema_pb2.BYTES:
return BytesCoder()
+ elif field_type.atomic_type == schema_pb2.BYTE:
Review Comment:
It seems OK because when BytesCoder encoding/decoding single byte with
nested=False is the same as Java's ByteCoder (write one bytes); but if the
stream has other data after this byte it is not the case.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]