|
|
-
Can we pass tuple value in macro?
Deepak Tiwari 2012-09-09, 15:33
Hi,
I have this function which I am using for different group by fields, can I call this macro like
calculate_sum(A,$0) calculate_sum(A,($0,$1)) calculate_sum(A,($0,$1,$2))
define calculate_sum ( A, groupByField) returns A_SUM1 { A_SUM = group $A by $groupByField; $A_SUM1 = foreach A_SUM generate FLATTEN(group),SUM($A.spend) as spend,SUM($A.units) as units ; };
Thanks,
Deepak
+
Deepak Tiwari 2012-09-09, 15:33
-
Re: Can we pass tuple value in macro?
Deepak Tiwari 2012-09-10, 17:00
Hi,
I have to outer join one big table with 3 other tables, Currently I am using it in three different out joins. I was wondering if that is possible to read the big table only one time and join it on different keys with different tables.
Thanks,
Deepak
+
Deepak Tiwari 2012-09-10, 17:00
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext