[
https://issues.apache.org/jira/browse/PIG-2257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240117#comment-13240117
]
Bill Graham commented on PIG-2257:
----------------------------------
This is actually a bug that should be patched. All constructs to
{{AvroStorage}} should work whether being passed as json or a string array, but
{{schema_file}} was only implemented in the former.
> AvroStorage doesn't recognize schema_file field when JSON isn't used in the
> constructor
> ---------------------------------------------------------------------------------------
>
> Key: PIG-2257
> URL: https://issues.apache.org/jira/browse/PIG-2257
> Project: Pig
> Issue Type: Bug
> Reporter: Bill Graham
> Assignee: Bill Graham
> Attachments: PIG-2257_1.patch
>
>
> PIG-2195 introduced the {{schema_file}} constructor param to {{AvroStorage}}.
> This field is currently only supported when passing constructor data via JSON
> though (a different code path is used when constructor data is a String
> array).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira