hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoltan Chovan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-15792) Hive should raise SemanticException when LPAD/RPAD pad character's length is 0
Date Thu, 02 Feb 2017 13:24:51 GMT

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

Zoltan Chovan updated HIVE-15792:
---------------------------------
    Issue Type: Improvement  (was: Bug)

> 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
>            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)

Mime
View raw message