PIG STRSPLIT() example
STRSPLIT() will split the string based on parameters passed to it .Explanation of STRSPLIT(line , ' ',5) is
a)splits the record named "line" based on first parameter to the function passed
b) based on second parameter ' ' (space ) the delimiter the action takes place.
C)So starting from a count of one it splits " line" into 5 words based on the delimiter ' ' space.
No comments:
Post a Comment