Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> AW: Json Loader - Array of objects - Loading results in empty data set


Copy link to this message
-
AW: Json Loader - Array of objects - Loading results in empty data set
Hello,

Much appreciated you taking your time to answer.
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