[
https://issues.apache.org/jira/browse/HIVE-15792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15858395#comment-15858395
]
Hive QA commented on HIVE-15792:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12851664/HIVE-15792.001.patch
{color:green}SUCCESS:{color} +1 due to 2 test(s) being added or modified.
{color:red}ERROR:{color} -1 due to 5 failed/errored test(s), 10242 tests
executed
*Failed tests:*
{noformat}
TestDerbyConnector - did not produce a TEST-*.xml file (likely timed out)
(batchId=235)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[udf_lpad] (batchId=33)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[udf_rpad] (batchId=82)
org.apache.hadoop.hive.cli.TestEncryptedHDFSCliDriver.testCliDriver[encryption_join_with_different_encryption_keys]
(batchId=159)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query14]
(batchId=223)
{noformat}
Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/3443/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/3443/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-3443/
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 5 tests failed
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12851664 - PreCommit-HIVE-Build
> 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
> Attachments: HIVE-15792.000.patch, HIVE-15792.001.patch
>
>
> 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)