extract tuple from bag in an order

2014-06-05 Thread Patcharee Thongtra
Hi, I have the following data (2009-09-09,2,1,{(70)},{(80)},{(90)}) (2010-10-10,2,12,{(71),(75)},{(81),(85)},{(91),(95)}) (2012-12-12,2,9,{(76),(77),(78)},{(86),(87),(88)},{(96),(97),(98)}) which is in the format {date: chararray, zone: int, z: int, uTmp: {(varvalue: int)}, vTmp: {(varvalue:

Re: extract tuple from bag in an order

2014-06-05 Thread Mehmet Tepedelenlioglu
You could separate the inner bags, flatten, rank, and join. It would be ugly and inefficient though. It is best to just write a udf which basically does what the python’s zip function does. On Jun 5, 2014, at 1:36 AM, Patcharee Thongtra patcharee.thong...@uni.no wrote: Hi, I have the