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

Dayakar M updated HIVE-27490:
-----------------------------
    Description: 
HPL/SQL says it support default value for parameters but not considering them 
when no value is passed.
{noformat}
CREATE OR replace PROCEDURE test123(a NUMBER DEFAULT -110)
AS
BEGIN
dbms_output.put_line (a);
end;{noformat}
Oracle shows the default value-
{noformat}
SQL> call test123();
-110{noformat}
Hive shows the variable name instead of the default value-
{noformat}
call test123();
INFO : a{noformat}

  was:
HPL/SQL says it support default value for parameters but not considering them 
when no value is passed.
{noformat}
CREATE OR replace PROCEDURE test123(a NUMBER DEFAULT -110)
AS
BEGIN
dbms_output.put_line (a);
end;{noformat}
Oracle shows the default value-
{noformat}
SQL> call BDH_HIVE_OWNER.test123();
-110{noformat}
Hive shows the variable name instead of the default value-
{noformat}
call test123();
INFO : a{noformat}


> HPL/SQL says it support default value for parameters but not considering them 
> when no value is passed
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-27490
>                 URL: https://issues.apache.org/jira/browse/HIVE-27490
>             Project: Hive
>          Issue Type: Bug
>          Components: hpl/sql
>            Reporter: Dayakar M
>            Assignee: Dayakar M
>            Priority: Major
>
> HPL/SQL says it support default value for parameters but not considering them 
> when no value is passed.
> {noformat}
> CREATE OR replace PROCEDURE test123(a NUMBER DEFAULT -110)
> AS
> BEGIN
> dbms_output.put_line (a);
> end;{noformat}
> Oracle shows the default value-
> {noformat}
> SQL> call test123();
> -110{noformat}
> Hive shows the variable name instead of the default value-
> {noformat}
> call test123();
> INFO : a{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to