[ 
https://issues.apache.org/jira/browse/HIVE-22784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17025400#comment-17025400
 ] 

Ramesh Kumar Thangarajan commented on HIVE-22784:
-------------------------------------------------

Missed the case, when newLength and start are both equals 0 in the expression 
bytes[start + newLength - 1]

> Boundary condition to check if there is nothing to truncate in StringExpr 
> functions
> -----------------------------------------------------------------------------------
>
>                 Key: HIVE-22784
>                 URL: https://issues.apache.org/jira/browse/HIVE-22784
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ramesh Kumar Thangarajan
>            Assignee: Ramesh Kumar Thangarajan
>            Priority: Major
>         Attachments: HIVE-22784.1.patch
>
>
> Add a boundary condition to check if there is nothing to truncate in 
> StringExpr functions
> truncate()
> rightTrimAndTruncate()



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to