Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究一个平面模式,里面没有嵌套类型,它有超过 254 个字段。
目标:我想做的是通过特定的生成器自动将这种模式转换为平面案例类
问题:JVM 中参数列表的长度不能超过 254
我试过的 => 使用插件sbt-avrohugger和sbt-avro4s,但它们的效果并不好。
问:有没有办法实现目标?
这是 avro 1.8.1 中的修复
https://issues.apache.org/jira/browse/AVRO-1642
如果可以使用 avro 1.8.1 或更高版本,它将解决您的问题