0
我需要將Value列轉換爲城市分組的單行,並用「|」分隔。 (管)字符Apache Pig將行轉換爲以字符分隔的單列
DATA = LOAD '/tmp/test.dat' 使用PigStorage( '')作爲( CITY:chararray, VALUE:chararray )
輸入: (城市/值)
ISTANBUL,1
ISTANBUL,2
ISTANBUL,3
NEWYORK,8
NEWYORK,9
輸出:
ISTANBUL,1 | 2 | 3
NEWYORK,8 | 9
工程就像一個魅力!謝謝。 –