Sure, but now I'm just omiting the rows _after_ regex matching.
What I want to do is to avoid additional filtering by regex and ignore
invalid rows right after unsuccessful IsoToUnix().

2011/11/8 pablomar <[email protected]>

> can you write something else (a null, for example) in your putNext
> method for that field when the date is invalid ?
>
> On 11/8/11, Rauan Maemirov <[email protected]> wrote:
> > Well, I solved this issue via regex matching, but I wonder if it's too
> > costful.
> > Is there anyway the way to ignore exceptions and move on just by omiting
> > the wrong tuples?
> >
> > 2011/11/8 Rauan Maemirov <[email protected]>
> >
> >> Hi, all. I've got custom log (csv delimited by comma) with iso dates,
> >> sometimes log writing lags and I'm having exceptions with wrong iso date
> >> format.
> >> Here's exception: https://gist.github.com/1347406. (Date is the last
> >> "parameter" in the row, and it's incorrectly overwritten at the end by
> >> another string).
> >>
> >> The question is how can I filter out all wrong dates or at least force
> pig
> >> to ignore them instead of failing?
> >>
> >
>

Reply via email to