Hello,

Much appreciated you taking your time to answer.

> should probably look like
> 
>  {DataASet: (A1: int,A2: int,DataBSets: {(DataBSet: (B1: chararray,B2:
> chararray))})}

How to achieve this? I tried:
```
b = load 'b.json' using JsonLoader('
     DataASet: (
       A1:int,
       A2:int,
       DataBSets: {
        (
        (DataBSet: (
           B1:chararray,
           B2:chararray
         )
        ))
       }
     )
 ');
```

Which gives this schema which does not look right.
Dump fails (empty bag)

```
Grunt > describe b;
b: {DataASet: (A1: int,A2: int,DataBSets: {tuple_0: (DataBSet: (B1: 
chararray,B2: chararray))})}
grunt> dump b;
()
grunt>
```

Kind regards.
Ralf 

> -----Ursprüngliche Nachricht-----
> Von: Pradeep Gollakota [mailto:pradeep...@gmail.com]
> Gesendet: Friday, August 08, 2014 2:21 PM
> An: user@pig.apache.org
> Betreff: Re: Json Loader - Array of objects - Loading results in empty data 
> set
> 
> I think there's a problem with your schema.
> 
>  {DataASet: (A1: int,A2: int,DataBSets: {DataBSet: (B1: chararray,B2:
> chararray)})}
> 
> should probably look like
> 
>  {DataASet: (A1: int,A2: int,DataBSets: {(DataBSet: (B1: chararray,B2:
> chararray))})}
> 
> 
> On Thu, Aug 7, 2014 at 11:22 AM, Klüber, Ralf <ralf.klue...@p3-group.com>
> wrote:

Reply via email to