You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Hive QA (JIRA)" <ji...@apache.org> on 2017/09/05 23:32:00 UTC

[jira] [Commented] (HIVE-17452) HPL/SQL function variable block is not initialized

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

Hive QA commented on HIVE-17452:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12885445/HIVE-17452.1.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 7 failed/errored test(s), 11028 tests executed
*Failed tests:*
{noformat}
TestAccumuloCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=230)
TestDummy - did not produce a TEST-*.xml file (likely timed out) (batchId=230)
TestTxnCommandsBase - did not produce a TEST-*.xml file (likely timed out) (batchId=280)
org.apache.hadoop.hive.cli.TestBlobstoreCliDriver.testCliDriver[insert_overwrite_dynamic_partitions_move_only] (batchId=242)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[insert_values_orig_table_use_metadata] (batchId=61)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query14] (batchId=234)
org.apache.hive.jdbc.TestJdbcWithMiniHS2.testHttpRetryOnServerIdleTimeout (batchId=227)
{noformat}

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/6679/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/6679/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-6679/

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: 7 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12885445 - PreCommit-HIVE-Build

> HPL/SQL function variable block is not initialized
> --------------------------------------------------
>
>                 Key: HIVE-17452
>                 URL: https://issues.apache.org/jira/browse/HIVE-17452
>             Project: Hive
>          Issue Type: Bug
>          Components: hpl/sql
>            Reporter: Dmitry Tolpeko
>            Assignee: Dmitry Tolpeko
>            Priority: Critical
>         Attachments: HIVE-17452.1.patch
>
>
> Variable inside declaration block are not initialized:
> {code}
> CREATE FUNCTION test1()
>   RETURNS STRING
> AS
>   ret string DEFAULT 'Initial value';
> BEGIN
>   print(ret);
>   ret := 'VALUE IS SET';
>   print(ret);
> END;
> test1();
> {code}
> Output:
> {code}
> ret      
> VALUE IS SET
> {code}
> Should be:
> {code}
> Initial value     
> VALUE IS SET
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)