You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Fei Hui (JIRA)" <ji...@apache.org> on 2017/06/04 08:12:04 UTC
[jira] [Commented] (HIVE-16768) NOT operator returns NULL from
result of <=>
[ https://issues.apache.org/jira/browse/HIVE-16768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16036209#comment-16036209 ]
Fei Hui commented on HIVE-16768:
--------------------------------
It is the same to HIVE-15517 [~sterligovak].
Is it right ? [~pxiong]
> NOT operator returns NULL from result of <=>
> --------------------------------------------
>
> Key: HIVE-16768
> URL: https://issues.apache.org/jira/browse/HIVE-16768
> Project: Hive
> Issue Type: Bug
> Affects Versions: 2.1.1
> Reporter: Alexander Sterligov
>
> {{SELECT "foo" <=> null;}}
> returns {{false}} as expected.
> {{SELECT NOT("foo" <=> null);}}
> returns NULL, but should return {{true}}.
> Workaround is
> {{SELECT NOT(COALESCE("foo" <=> null));}}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)