You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Paul Mazak (JIRA)" <ji...@apache.org> on 2015/05/22 20:05:17 UTC

[jira] [Created] (PIG-4570) Allow AvroStorage to use a class for the schema

Paul Mazak created PIG-4570:
-------------------------------

             Summary: 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)