0
我有這些數據的文件:可以apache豬比較unicode字符串嗎?
jumpsuit 1
son 1
Đồng hồ kim 1
這是我的豬腳本:
A = LOAD 'hdfs://Hadoop238:8020/user/steve/test/test.txt' USING PigStorage AS (productName:chararray, number:int);
B = FILTER A BY (productName =='Đồng hồ kim');
DUMP B;
它返回任何內容。但是,如果我更改爲:
B = FILTER A BY (productName =='jumpsuit');
它返回值。
看來豬不能比較unicode字符串。有什麼辦法可以比較unicode字符串嗎?