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

Gopal V updated HIVE-20406:
---------------------------
    Description: 
Below query is returning NULL instead of 'TEST' 

select coalesce(coalesce(null), 'TEST');

{noformat}
INFO  : OK

+-------+

|  _c0  |

+-------+

| NULL  |

+-------+

{noformat}

  was:
Below query is returning NULL instead of 'TEST' 

select coalesce(coalesce(null), 'TEST');

INFO  : OK

+-------+

|  _c0  |

+-------+

| NULL  |

+-------+


> Nested Coalesce giving incorrect results
> ----------------------------------------
>
>                 Key: HIVE-20406
>                 URL: https://issues.apache.org/jira/browse/HIVE-20406
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 3.0.0
>            Reporter: Riju Trivedi
>            Priority: Critical
>
> Below query is returning NULL instead of 'TEST' 
> select coalesce(coalesce(null), 'TEST');
> {noformat}
> INFO  : OK
> +-------+
> |  _c0  |
> +-------+
> | NULL  |
> +-------+
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to