hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-5469) support nullif
Date Tue, 27 May 2014 08:41:01 GMT

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

Navis updated HIVE-5469:
------------------------

    Assignee: Navis
      Status: Patch Available  (was: Open)

Migrating mssql to hive, met huge use case of nullif.

> support nullif
> --------------
>
>                 Key: HIVE-5469
>                 URL: https://issues.apache.org/jira/browse/HIVE-5469
>             Project: Hive
>          Issue Type: Improvement
>    Affects Versions: 0.11.0
>            Reporter: N Campbell
>            Assignee: Navis
>            Priority: Minor
>         Attachments: HIVE-5469.1.patch.txt
>
>
> Have to express case expression to work around lack of NULLIF
> select nullif(cint, 1) from tint
> select cint, case when cint = 1 then null else cint end from tint



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message