Unable to pass pig tuple to python UDF

前端 未结 2 567
有刺的猬
有刺的猬 2021-01-07 15:04

I have master.txt which has 10K records, so each line of it will be a tuple & whole of the same needs to be passed to python UDF. Since it has multiple records, so on st

2条回答
  •  天涯浪人
    2021-01-07 15:37

    This can be done by adding a dummy column and then grouping.

    dummmy= foreach p2preportmap generate 1, $0,$1 ....

    grouped = group dummy by $0

提交回复
热议问题