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

Switch to Threaded View
Pig >> mail # user >> Simplifying schema?


Copy link to this message
-
Re: Simplifying schema?
Good Afternoon Tim,
  What I've done is in my next command is something like this:

NewBag = foreach oldBag generate e::d::c::b::a::column1 as column1,
e::d::c::b::a::column2 as column2;

then your down to more manageable names.

-JJ

On Sat, Dec 8, 2012 at 1:48 PM, Chan, Tim <[EMAIL PROTECTED]> wrote:
> After many joins, my relation's schema because very verbose.
>
> For example:
>
> e::d::c::b::a::column1:bytearray, e::d::c::b::a::column2:bytearray
>
> Is there a way simplify the schema back to:
>
> column1:bytearray, column2:bytearray
>
> I seem to be able to achieve this by doing a STORE then LOAD, but this
> doesn't seem very efficient.