What are the different String functions available in pig?
Answer Posted / Suraj Singh Rana
In Pig, there are several string functions available. Here are some of them:n1. CONCAT("): Concatenates strings.n2. INITCAP("): Capitalizes the first letter of each word in a string.n3. LOWERCASE(") and UPPERCASE("): Convert case of a string to lowercase or uppercase respectively.n4. LENGTH("): Returns the length of a string.n5. SUBSTRING(", start, length): Extracts a substring from a given position starting for a specified length.n6. INDEXOF(", substr): Finds the position of substr in the string.n7. REPLACE(", old_substr, new_substr): Replaces all occurrences of old_substr with new_substr in the string.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers