Grokbase Groups Pig user August 2010
FAQ
All,

I have what should be a simple problem. I have 2 tuples that are chararrays t1, t2 and want to do a comparision. using

x = FILTER y BY (t1 == t2);

results in zero (0) records.

x = FILTER y BY (t1 != t2);

is zero records. And

x = FILTER y BY (t1 matches t2);

is an error. Ideal would be a StrComp(t1, t2) filter func.

Is there a UDF for that?

Cheers,

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 4 | next ›
Discussion Overview
groupuser @
categoriespig, hadoop
postedAug 18, '10 at 10:38p
activeAug 20, '10 at 12:49a
posts4
users2
websitepig.apache.org

2 users in discussion

Dave Wellman: 2 posts Dmitriy Ryaboy: 2 posts

People

Translate

site design / logo © 2022 Grokbase