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

Krisztian Kasa resolved HIVE-27490.
-----------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

Merged to master. Thanks [~Dayakar] for the patch.

> 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
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> 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