We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9c5b43 commit e06efefCopy full SHA for e06efef
1 file changed
src/nypl_py_utils/classes/avro_client.py
@@ -119,7 +119,8 @@ class AvroDecoder(AvroClient):
119
120
def decode_record(self, record):
121
"""
122
- Decodes a single record represented using the given Avro schema.
+ Decodes a single record represented using the given Avro
123
+ schema. Input must be a bytes-like object.
124
125
Returns a dictionary where each key is a field in the schema.
126
@@ -140,7 +141,8 @@ def decode_record(self, record):
140
141
142
def decode_batch(self, record_list):
143
- Decodes a list of JSON records using the given Avro schema.
144
+ Decodes a list of JSON records using the given Avro schema. Input
145
+ must be a list of bytes-like objects.
146
147
Returns a list of strings where each string is a decoded record.
148
0 commit comments