8. Explain the Trim and Reverse functions in Hive with examples.
The trim function will delete the spaces associated with a string.
Example:
TRIM(‘ INTELLIPAAT ‘);
Output:
INTELLIPAAT
To remove the leading space:
LTRIM(‘ INTELLIPAAT’);

TRIM(‘ INTELLIPAAT ‘);
INTELLIPAAT
LTRIM(‘ INTELLIPAAT’);