julianpeeters / avrohugger

Generate Scala case class definitions from Avro schemas
Apache License 2.0
201 stars 120 forks source link

Morethan254fields #189

Closed steve-e closed 9 months ago

steve-e commented 9 months ago

Generate specific avro parsers for schemas with more than 254 fields. The normal way avro schemas are handled is to create a case class with a var parameter for each field. A get method is also generated with a code bloc to convert each numbered field to an AnyRef. This function can exceed the JVM limit of 65536 bytes of there are many fields particularly if some are fixed types

steve-e commented 9 months ago

Just for reference

julianpeeters commented 9 months ago

awesome, thank you