| clear query|facets|time |
Search criteria: .
Results from 61 to 70 from
118 (0.124s).
|
|
|
Loading phrases to help you refine your search...
|
|
takeOne - Pig - [mail # user]
|
|
...okay, some times, I end up with a bag of one item. I wonder if it'll be quicker if we had a udf called takeOne() that takes one thing out of bag and returns it. I know if the bag has one ite...
|
|
|
Author: hc busy,
2010-04-27, 00:02
|
|
|
Re: How do I generate a row id? - Pig - [mail # user]
|
|
...No, no you misunderstand. I didn't mean to contact zookeeper for every single record. Each map instance will contact zookeeper once for every X number of records it sees. What the mapp...
|
|
|
Author: hc busy,
2010-04-23, 19:44
|
|
|
Re: How do I generate a row id? - Pig - [mail # user]
|
|
...Is the Java class guaranteed to be unique? Or will I have to perform an additional check after I join back? I guess I see how I can connect to a zookeeper server inside my UDF to get a...
|
|
|
Author: hc busy,
2010-04-23, 19:13
|
|
|
How do I generate a row id? - Pig - [mail # user]
|
|
...Guys, is there a easy way to generate a unique row id that is guaranteed to be unique? R = foreach T generate *, globally_unique() as id; The reason why I need this is because I ...
|
|
|
Author: hc busy,
2010-04-23, 18:48
|
|
|
Re: Bug in FILTER with IS (NOT) NULL ? - Pig - [mail # user]
|
|
...ohh, or in this case... T = filter U by IsEmpty(alias); would do the trick. On Wed, Apr 21, 2010 at 10:25 AM, hc busy wrote: th e...
|
|
|
Author: hc busy,
2010-04-21, 17:26
|
|
|
Re: Bug in FILTER with IS (NOT) NULL ? - Pig - [mail # user]
|
|
...In a previous version I've had to write a UDF called NOT that I invoke with T = filter U by my.udf.NOT($2 is null); T = filter U by my.udf.NOT(IsEmpty($3)); it was for an ...
|
|
|
Author: hc busy,
2010-04-21, 17:25
|
|
|
Re: How to create complex structures in foreach..generate? - Pig - [mail # user]
|
|
...Well, there are now three tickets. PIG-1385 tracks the top variant that's simply an UDF PIG-1387 is a subsequent ticket that we can use to track work towards the bottom variant where w...
|
|
|
Author: hc busy,
2010-04-21, 05:44
|
|
|
Re: How to create complex structures in foreach..generate? - Pig - [mail # user]
|
|
...Hey, while we're on the subject, and I have your attention, can we re-factor the UDF MaxTupleByFirstField to take constructor? *define customMaxTuple ExtremalTupleByNthField(n, 'min');...
|
|
|
Author: hc busy,
2010-04-21, 01:45
|
|
|
Re: How to create complex structures in foreach..generate? - Pig - [mail # user]
|
|
...What about making them part of the language using symbols? instead of foreach T generate Tuple($0, $1, $2), Bag($3, $4, $5), $6, $7; have language support foreach T g...
|
|
|
Author: hc busy,
2010-04-21, 01:34
|
|
|
Re: Unusual failure when flattening bags - Pig - [mail # user]
|
|
...I'll bet that the chadsImgs.ExtractURLS didn't implement something right. Can you paste the profile of that UDF? (like what does exec return ? ), what other methods did you implement? Did yo...
|
|
|
Author: hc busy,
2010-04-19, 23:48
|
|
|
|