[
https://issues.apache.org/jira/browse/PIG-4570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14556530#comment-14556530
]
Paul Mazak commented on PIG-4570:
---------------------------------
I'm working on a patch for this.
> Allow AvroStorage to use a class for the schema
> -----------------------------------------------
>
> Key: PIG-4570
> URL: https://issues.apache.org/jira/browse/PIG-4570
> Project: Pig
> Issue Type: New Feature
> Reporter: Paul Mazak
> Priority: Minor
>
> When you are managing Avro Schemas in your source code and you have the Java
> classes to serialize/deserialize Avro, it would be easier to do something
> like:
> {quote}
> store a into 'tmp/myuser' using AvroStorage(null, '-schemaclass
> com.myco.MyUser')
> {quote}
> Rather than passing as the first agurment, the entire Avro schema json in the
> pig script, or keeping a (potentially outdated) set of Avro schema files in
> HDFS for the -schemafile option.
> If your classpath is already aware of how to serialize/deserialize the Avro
> data, it would be good to leverage that with a fully qualified classname.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)