I think you're correct: as written, the JIRA doesn't have a lot of sense.

Does the BSON example imply that it would be useful to get the Avro
length of a datum given a schema?

Roughly: `len(my_schema.from_datum({"hello": "world"})) == 22` ?  It
doesn't seem quite right either!


On Wed, Nov 6, 2019 at 3:36 AM Michael A. Smith <[email protected]> wrote:
>
> AVRO-239 asks for an implementation of `__len__` in Python's
> implementation of avro schema. It points to BSON as an example, but I
> don't really understand what the ask is -- what's the purpose of
> having a "length" of a schema, and what would it mean? If schema had a
> consistent length, how could users benefit from it?
>
> Thanks,
> Michael A. Smith

Reply via email to