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

Switch to Threaded View
Pig >> mail # user >> Behaviour on a failed cast.

Copy link to this message
Re: Behaviour on a failed cast.
I think If the code is java code in the udf, you'd better catch the
exception and do something, just not ignore that.

If your pig code meet a cast failed, you can step by step debug your code
line by line in the interactive mode.
Sometimes when after one step(as streaming) the schema seems not certain,
if you describe it and will see that the schema is null.
And you can using "... as();" to certain the schema and column type, maybe
you will defeat the cast fail.


2013/1/12 Kris Coward <[EMAIL PROTECTED]>

> Hi,
> I remember a while back that there was a setting introduced to allow a
> pig job to either insert a null, or drop a row, instead of aborting
> execution, when a cast failed. Of course, now that I need it, I'm having
> no luck finding it in the list archives, or on google; would someone be
> so kind as to remind me what the setting is?
> Thanks,
> Kris
> --
> Kris Coward                                     http://unripe.melon.org/
> GPG Fingerprint: 2BF3 957D 310A FEEC 4733  830E 21A4 05C7 1FEB 12B3