| clear query|facets|time |
Search criteria: .
Results from 31 to 40 from
118 (0.145s).
|
|
|
Loading phrases to help you refine your search...
|
|
Re: How to find all possible permutations from a bag - Pig - [mail # user]
|
|
...You can't really get away from string comparisons: B = FOREACH A GENERATE $0 AS v1; C = FOREACH A GENERATE $0 AS v2; D = CROSS B, C; dump D; -- generates all permutations of the two k...
|
|
|
Author: hc busy,
2010-06-14, 17:21
|
|
|
Re: Help with a tricky query - Pig - [mail # user]
|
|
...Yeah, that IS hard in pig. I'm not even sure how to do a self-join in Pig. Like you can't really say T = join Table by id1, Table by id2, Table by id3; I think PigLatin will comp...
|
|
|
Author: hc busy,
2010-06-11, 17:59
|
|
|
Re: Behavior of JOIN - Pig - [mail # user]
|
|
...Oh, I see what my confusion is... It's the "null"s on which join behaves differently in pig than sql. Right? that's where things are different. On Thu, Jun 10, 2010 at 12:48 PM, Alan ...
|
|
|
Author: hc busy,
2010-06-11, 17:44
|
|
|
Re: Help with a tricky query - Pig - [mail # user]
|
|
...What's a transitive closure? On Thu, Jun 10, 2010 at 2:34 PM, Gianmarco wrote: en a...
|
|
|
Author: hc busy,
2010-06-10, 22:33
|
|
|
Re: Behavior of JOIN - Pig - [mail # user]
|
|
...Isn't that kind of annoying? Since JOIN in sql implicitly is an inner join. Would have been great if C = JOIN A by id, B b id; is alias for C1 = COGROUP A by id, B by id; C2 = fi...
|
|
|
Author: hc busy,
2010-06-10, 18:09
|
|
|
Re: Help with a tricky query - Pig - [mail # user]
|
|
...Is this like a tricky interview question? I don't see the pattern between those three numbers you listed and the sample of the table. 770011 770083 524 1e-120 89 12 770083 770011 494 1...
|
|
|
Author: hc busy,
2010-06-10, 17:54
|
|
|
Re: does EvalFunc generate the entire bag always ? - Pig - [mail # dev]
|
|
...well, see that's the thing, the 'sort A by $0' is already nlg(n) ahh, I see, my own example suffers from this problem. I guess I'm wondering how 'limit' works in conjunction with...
|
|
|
Author: hc busy,
2010-06-01, 20:44
|
|
|
Re: cogroup and flattening optionally empty bags - Pig - [mail # user]
|
|
...yeah, something like this should work: o = foreach cg generate FLATTEN(A.a_column) as a_column, ((IsEmpty(B))?toBag(toTuple(null)):(B.b_column)) as B2: o2 = foreach o generate a_column...
|
|
|
Author: hc busy,
2010-06-01, 20:38
|
|
|
Re: UDF question - Pig - [mail # user]
|
|
...oh, that's a good point, can't just return arbitrary types... Even if I derive from base class. Interesting. Well, the combination of toTuple and toBag will accomplish many tasks. One ...
|
|
|
Author: hc busy,
2010-06-01, 20:29
|
|
|
Re: UDF question - Pig - [mail # user]
|
|
...Couldn't you give EvalFunc any return type? so you can just return a Bag that contains tuples of tuples, right? And it's easy because tuple is un parameterized type, (and so is Bag) so you'd...
|
|
|
Author: hc busy,
2010-05-29, 00:29
|
|
|
|