strsplit issue - Pig
问题 I have following tuple H1 and I want to strsplit its $0 into tuple.However I always get an error message: DUMP H1: (item32;item31;,1) m = FOREACH H1 GENERATE STRSPLIT($0, ";", 50); ERROR 1000: Error during parsing. Lexical error at line 1, column 40. Encountered: after : "\";" Anyone knows what's wrong with the script? 回答1: There is an escaping problem in the pig parsing routines when it encounters this semicolon. You can use a unicode escape sequence for a semicolon: \u003B . However this