|
|
Aniket Mokashi 2011-02-17, 00:58
Hi,
I have a custom loader that creates and returns a tuple of id, bags. I want to open these bags and get their contents. For example- data = load 'loc' using myLoader() as (id, bag1, bag2); bag1Content = foreach data generate FLATTEN(bag1); This works.
But when I do bag1Content = foreach data generate id, FLATTEN(bag1) --it fails. How should I fix it?
Thanks, Aniket
+
Aniket Mokashi 2011-02-17, 00:58
-
Re: FLATTEN custom bags
Daniel Dai 2011-02-17, 02:47
Hi, Aniket, Does myLoader implements LoadMetaData? If it does, what schema it returns? I suspect that your schema for bag does not set twolevelaccess flag (though we are working to drop it in 0.9).
Daniel
Aniket Mokashi wrote: > Hi, > > I have a custom loader that creates and returns a tuple of id, bags. I > want to open these bags and get their contents. > For example- > data = load 'loc' using myLoader() as (id, bag1, bag2); > bag1Content = foreach data generate FLATTEN(bag1); > This works. > > But when I do bag1Content = foreach data generate id, FLATTEN(bag1) --it > fails. > How should I fix it? > > Thanks, > Aniket > > >
+
Daniel Dai 2011-02-17, 02:47
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext