Github user MLnick commented on the pull request:

    https://github.com/apache/spark/pull/455#issuecomment-46656191
  
    @rjurney it should work but you'll need to write a converter like:
    
    ```scala
    class AvroConverter extends Converter[AvroKey[GenericRecord], 
java.util.Map[String, Any]] {
      import collection.JavaConversions._
    
      override def convert(obj: AvroKey[GenericRecord]): java.util.Map[String, 
Any] = {
        val record = obj.datum()
        val schema = record.getSchema
        mapAsJavaMap(schema.getFields.map( f => (f.name, record.get(f.name)) 
).toMap)
      }
    }
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to