avrohugger icon indicating copy to clipboard operation
avrohugger copied to clipboard

Support Scala 2.10 and Schemas with more than 22 parameters

Open mariussoutier opened this issue 8 years ago • 3 comments

For backwards-compatibility with Scala 2.10 (Hadoop distros sadly come with Spark on Scala 2.10), do not write out case classes but simply classes when a schema has more than 22 parameters and Scala 2.10 is used.

I'll try to submit a PR soonish.

sbt-avrohugger should be able to call the right version depending on the Scala version used.

mariussoutier avatar Sep 06 '16 16:09 mariussoutier

👍 Fixed in avrohugger 0.12.0, waiting on successful sbt-avrohugger update to close

julianpeeters avatar Sep 20 '16 08:09 julianpeeters

Looking good, the sbt-avrohugger didn't break any scripted tests, but I will add a ManyFields scripted test to either avrohugger or sbt-avrohugger before closing (likely sbt-avrohugger after restoring and reorganizing the plugin's tests)

julianpeeters avatar Sep 22 '16 08:09 julianpeeters

👍 Looking forward to scripted tests.

mariussoutier avatar Sep 22 '16 19:09 mariussoutier