[teiid-issues] [JBoss JIRA] (TEIID-4679) PrestoDB translator - locate function - source specific function has different order of arguments

RH Bugzilla Integration (JIRA) issues at jboss.org
Fri Jan 12 08:52:00 EST 2018


    [ https://issues.jboss.org/browse/TEIID-4679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13514105#comment-13514105 ] 

RH Bugzilla Integration commented on TEIID-4679:
------------------------------------------------

David Le Sage <dlesage at redhat.com> changed the Status of [bug 1456401|https://bugzilla.redhat.com/show_bug.cgi?id=1456401] from ASSIGNED to ON_QA

> PrestoDB translator - locate function - source specific function has different order of arguments
> -------------------------------------------------------------------------------------------------
>
>                 Key: TEIID-4679
>                 URL: https://issues.jboss.org/browse/TEIID-4679
>             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
>
>
> For PrestoDB translator, *locate(x,y)* is translated as *strpos(x,y)* - i.e. *strpos(substring, string)*, but function has different order of arguments - from [PrestoDB documentation|https://prestodb.io/docs/current/functions/string.html] - *strpos(string, substring)*
> {code:sql|title=Query}
> SELECT StringNum, LOCATE('1', StringNum) FROM BQT1.SmallA
> {code}
> {code:sql|title=Source-specific command}
> SELECT g_0.stringnum, strpos('1', g_0.stringnum) FROM smalla AS g_0
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the teiid-issues mailing list