[teiid-issues] [JBoss JIRA] (TEIID-4679) PrestoDB translator - locate function - source specific function has different order of arguments
Juraj Duráni (JIRA)
issues at jboss.org
Fri Jan 6 08:07:00 EST 2017
Juraj Duráni created TEIID-4679:
-----------------------------------
Summary: 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: Query Engine
Affects Versions: 8.12.8.6_3
Reporter: Juraj Duráni
Assignee: Steven Hawkins
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.2.3#72005)
More information about the teiid-issues
mailing list