hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pengcheng Xiong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-14918) Function concat_ws get a wrong value
Date Sun, 09 Oct 2016 23:20:20 GMT

    [ https://issues.apache.org/jira/browse/HIVE-14918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15560808#comment-15560808
] 

Pengcheng Xiong commented on HIVE-14918:
----------------------------------------

Initially when it was developed, it was following MySQL.
{code}
mysql> SELECT concat_ws('.',NULL) FROM (SELECT 'abc', 'xyz', '8675309' from t WHERE t.test
= 86)subq;
+---------------------+
| concat_ws('.',NULL) |
+---------------------+
|                     |
+---------------------+
1 row in set (0.13 sec)
{code}

> Function concat_ws get a wrong value  
> --------------------------------------
>
>                 Key: HIVE-14918
>                 URL: https://issues.apache.org/jira/browse/HIVE-14918
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>    Affects Versions: 1.1.1, 2.0.0, 2.1.0, 2.0.1
>            Reporter: Xiaowei Wang
>            Assignee: Xiaowei Wang
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: HIVE-14918.0.patch
>
>
> FROM src INSERT OVERWRITE TABLE dest1 SELECT 'abc', 'xyz', '8675309'  WHERE src.key =
86; 
> SELECT concat_ws('.',NULL)  FROM dest1 ;
> The result is a empty  string "",but I think it should be return NULL .



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message