Comments (10)
Yes, however the timeframe for completion is uncertain. Likely within one or two months. Pull requests welcome.
from avro-scala-macro-annotations.
Ok, no problem. Can you point me to the area of code that I need to look at?
from avro-scala-macro-annotations.
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.
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.
Unfortunately, I've been extra busy recently so I haven't done much. Sorry.
from avro-scala-macro-annotations.
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.
This works great! Looking forward to the port to 2.10.
Thanks,
Sutram
from avro-scala-macro-annotations.
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.
I verified that the 2.10 version works as well!
from avro-scala-macro-annotations.
OK great, thanks for the report. Happy Avro-ing.
from avro-scala-macro-annotations.
Related Issues (20)
- Adding default values in the schema? HOT 6
- Null valued field exclusion HOT 9
- Issues reading and writing evolved records with the old schemas HOT 2
- Supported collection types HOT 2
- Type macro to Unit HOT 2
- Support AVDL files HOT 2
- AvroTypeProvider generated case class aren't specific records HOT 2
- Support case classes that already have a companion object HOT 3
- Have to use @AvroTypeProvider first and @AvroRecord second
- Support enums HOT 3
- Compile time typecheck fails on doubly+ nested types HOT 1
- logger didn't work out so well...
- AvroTypeProvider expansion from a schema with nested records works for .avro, fails for .avsc HOT 1
- Error reading an array of schmas HOT 1
- Support for nesting in a more hierarchical manner HOT 6
- Serializing with generic writer and deserializing with specific reader HOT 2
- How to use it properly? HOT 1
- What am I doing wrong? HOT 3
- Scala 2.12 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avro-scala-macro-annotations.