[
https://issues.apache.org/jira/browse/PIG-4221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14158884#comment-14158884
]
Rohini Palaniswamy commented on PIG-4221:
-----------------------------------------
Have you tried com.twitter.elephantbird.pig.load.JsonLoader ?
> I should not specify the schema for JsonLoader
> -----------------------------------------------
>
> Key: PIG-4221
> URL: https://issues.apache.org/jira/browse/PIG-4221
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.12.0
> Reporter: Joao Salcedo
>
> I should be able to import JSON data without specify the schema
> raw = LOAD 'testjson' USING JsonLoader() as (json:map[]);
> and call every fields as :
> data = foreach raw generate (chararray)$0#'field1' as text,(long)$0#'field2'
> as id; ...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)