Hi Tariq,
Thank you for explanation. I have multiple conditions to verify in a
relation. How can check multiple expressions for one field?
Thanks
Soniya
On Sun, Apr 28, 2013 at 4:20 AM, Mohammad Tariq wrote:
> Hello Soniya,
>
>It's like the ternary or the conditional operator avail
Hello Soniya,
It's like the ternary or the conditional operator available in java
and works just like that. Here is the example provided in the reference
manual :
*Suppose we have relation A.*
A = LOAD 'data' AS (f1:int, f2:int, B:bag{T:tuple(t1:int,t2:int)});
DUMP A;
(10,1,{(2,3),(4,6)}
Resending now that I am subscribed :)
On 4/25/13 4:01 PM, "Enns, Steven" wrote:
>Hi everyone,
>
>I would like to override the input schema in AvroStorage to make a pig
>script robust to schema evolution. For example, suppose a new field is
>added to an avro schema with a default value of null.
Hi,
Anyone can explain me about use of BinCond function with an example? I am
trying a lot but didn't work it.
Regards
Soniya
values = LOAD 'my_path' AS (id1:int, id2:chararray, value:int);
overall = FOREACH (GROUP values BY id1) GENERATE group AS id1,
value/MAX(value) as div_max;
Russell Jurney http://datasyndrome.com
On Apr 27, 2013, at 2:32 AM, jamal sasha wrote:
> Hi,
> I have data of format
>
> id1,id2, value
>
Hi,
I have data of format
id1,id2, value
1 , abc, 2993
1, dhu, 9284
1,dus,2389
2, acs,29392
and so on
For each id1, I want to find the maximum value and then divide value by
max_value
so in example above:
1,abc, 2993/9284
1,dhu ,9284/9284
1,dus, 2389/9284
2,acs, 29392/max_value_for_this id
H