Git Product home page Git Product logo

Comments (10)

julianpeeters avatar julianpeeters commented on June 24, 2024

Yes, however the timeframe for completion is uncertain. Likely within one or two months. Pull requests welcome.

from avro-scala-macro-annotations.

sutram avatar sutram commented on June 24, 2024

Ok, no problem. Can you point me to the area of code that I need to look at?

from avro-scala-macro-annotations.

julianpeeters avatar julianpeeters commented on June 24, 2024

Sure. If you'd like to take a look, I've made a branch with a handful of Map tests and AvroRecord will need to be updated for them to pass.

Avro takes in a ClassDef, reads its set of fields, and emits a ClassDef with new members based on those fields. Specifically, the methods generateNewCtors, generateSchema, generateNewMethods need to know what to generate when they are passed a set of fields that contains a map.

For example, when AvroRecord tries to make zero-arg constructor, it needs a default value for each field, but currently doesn't know what default to use when the field is a Map.

from avro-scala-macro-annotations.

julianpeeters avatar julianpeeters commented on June 24, 2024

I'm going to start on this feature, so if by chance there has been any progress here, please share any scraps. :)

from avro-scala-macro-annotations.

sutram avatar sutram commented on June 24, 2024

Unfortunately, I've been extra busy recently so I haven't done much. Sorry.

from avro-scala-macro-annotations.

julianpeeters avatar julianpeeters commented on June 24, 2024

No worries at all.

Maps are now supported for Scala 2.11, with release version 0.9.0.

Support for Maps in 2.10 will come as well.

from avro-scala-macro-annotations.

sutram avatar sutram commented on June 24, 2024

This works great! Looking forward to the port to 2.10.

Thanks,
Sutram

from avro-scala-macro-annotations.

julianpeeters avatar julianpeeters commented on June 24, 2024

Good to hear.

You can try with 2.10 by using release version 0.4.1, should be syncing with maven central in a couple hours.

from avro-scala-macro-annotations.

sutram avatar sutram commented on June 24, 2024

I verified that the 2.10 version works as well!

from avro-scala-macro-annotations.

julianpeeters avatar julianpeeters commented on June 24, 2024

OK great, thanks for the report. Happy Avro-ing.

from avro-scala-macro-annotations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.