You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Dmitry Tolpeko (JIRA)" <ji...@apache.org> on 2017/09/05 09:10:00 UTC
[jira] [Created] (HIVE-17452) HPL/SQL function variable block is
not initialized
Dmitry Tolpeko created HIVE-17452:
-------------------------------------
Summary: 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
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)