You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Nandakumar (JIRA)" <ji...@apache.org> on 2017/02/02 13:49:52 UTC

[jira] [Assigned] (HIVE-15792) Hive should raise SemanticException when LPAD/RPAD pad character's length is 0

     [ https://issues.apache.org/jira/browse/HIVE-15792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nandakumar reassigned HIVE-15792:
---------------------------------

    Assignee: Nandakumar

> Hive should raise SemanticException when LPAD/RPAD pad character's length is 0
> ------------------------------------------------------------------------------
>
>                 Key: HIVE-15792
>                 URL: https://issues.apache.org/jira/browse/HIVE-15792
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Zoltan Chovan
>            Assignee: Nandakumar
>            Priority: Minor
>
> For example SELECT LPAD('A', 2, ''); will cause an infinite loop and the running query will hang without any error.
> It would be great if this could be prevented by checking the pad character's length and if it's 0 then throw a SemanticException.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)