hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Tolpeko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-17452) HPL/SQL function variable block is not initialized
Date Tue, 05 Sep 2017 09:35:00 GMT

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

Dmitry Tolpeko updated HIVE-17452:
----------------------------------
    Component/s: hpl/sql

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

Mime
View raw message