Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
<trim function> ::= TRIM <left paren> <trim operands> <right paren> <trim operands> ::= [ [ <trim specification> ] [ <trim character> ] FROM ] <trim source> <trim source> ::= <character value expression> <trim specification> ::= LEADING | TRAILING | BOTH <trim character> ::= <character value expression>
Example
SELECT TRIM(LEADING '0' FROM '000123'); 123
Attachments
Issue Links
- relates to
-
HIVE-24599 Add support vectorized two parameter trim functions
- Open
-
HIVE-24598 Trim function should return null if any of its parameter is null
- Resolved
- links to