[teiid-issues] [JBoss JIRA] (TEIID-4685) PrestoDB translator - IFNULL is translated as NULLIF

RH Bugzilla Integration (JIRA) issues at jboss.org
Tue May 30 05:41:00 EDT 2017


     [ https://issues.jboss.org/browse/TEIID-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

RH Bugzilla Integration updated TEIID-4685:
-------------------------------------------
    Bugzilla References: https://bugzilla.redhat.com/show_bug.cgi?id=1456401
        Bugzilla Update: Perform


> PrestoDB translator - IFNULL is translated as NULLIF
> ----------------------------------------------------
>
>                 Key: TEIID-4685
>                 URL: https://issues.jboss.org/browse/TEIID-4685
>             Project: Teiid
>          Issue Type: Bug
>          Components: Misc. Connectors
>    Affects Versions: 8.12.8.6_3
>            Reporter: Juraj Duráni
>            Assignee: Steven Hawkins
>             Fix For: 9.2, 9.1.3
>
>
> Teiid translates *NULLIF* function to *nullif*. However, those functions have different functionality. Note, this is the case for *COALESCE* with two arguments as well as that function is rewritten to *IFNULL*.
> See [PrestoDB doc|https://prestodb.io/docs/current/functions/conditional.html]
> {code:sql|title=Query}
> SELECT IFNULL(intnum, intkey) FROM BQT1.SmallA
> {code}
> {code:sql|title=Source command}
> SELECT nullif(g_0.intnum, g_0.intkey) FROM smalla AS g_0
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the teiid-issues mailing list