[ 
https://issues.apache.org/jira/browse/PIG-4570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Dai updated PIG-4570:
----------------------------
       Resolution: Fixed
    Fix Version/s: 0.16.0
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

+1. Patch committed to trunk. Thanks Paul!

> 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
>    Affects Versions: 0.14.0
>            Reporter: Paul Mazak
>            Assignee: Paul Mazak
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: PIG-4570.patch, PIG-4570_2.patch
>
>
> 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)

Reply via email to