我有数据记录是这样的:Apache PIG - 如何获得翻牌10数据记录?
Name customerID revenue(Mio) premium
Michael James 078932832 2.7 y
Susan Miller 024383490 3.9 n
John Cooper 021023023 2.1 y
如何获得这些记录 - 分为优质标志 - 每一个最低收入(=触发器10)?正如你所看到的列表进行排序上升(与最低收入开始)
Nr Name customerID revenue(Mio) premium
1 John Cooper 021023023 2.1 y
2 Michael James 078932832 2.7 y
3 Andrew Murs 044834399 3.0 y
. ... ..... ... .
10 th entry with flag y
1 Susan Miller 024383490 3.9 n
. ... ..... ... .
10 th entry with flag n
:
结果应给出。
你已经试过了什么? – mr2ert