[JBoss JIRA] (TEIID-5319) SAP IQ translator wrong pushdown of query with multiple JOINs
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-5319?page=com.atlassian.jira.plugin... ]
Steven Hawkins commented on TEIID-5319:
---------------------------------------
The teiid syntax is generally valid and seems allowable given https://help.sap.com/viewer/a898e08b84f21015969fa437e89860c8/16.1.3.0/en-...
What is the parsing error you are seeing?
Can you see if directly issuing the source query with nesting parens works?
{code}
SELECT g_1."intkey" AS c_0, g_2."intkey" AS c_1, g_0."intkey" AS c_2
FROM
"bqt-server"."dvqe"."LargeB" AS g_0
LEFT OUTER JOIN
("bqt-server"."dvqe"."SmallA" AS g_1
INNER JOIN "bqt-server"."dvqe"."MediumB" AS g_2
ON g_1."intkey" = g_2."intkey")
ON g_2."intkey" = g_0."intkey"
AND g_2."intkey" < 1500
WHERE g_0."intkey" < 1500
{code}
> SAP IQ translator wrong pushdown of query with multiple JOINs
> -------------------------------------------------------------
>
> Key: TEIID-5319
> URL: https://issues.jboss.org/browse/TEIID-5319
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 8.12.13.6_4
> Reporter: Jan Stastny
> Assignee: Steven Hawkins
> Priority: Critical
>
> For a query:
> {code:sql}
> SELECT BQT1.SmallA.IntKey AS SmallA_IntKey, BQT2.MediumB.IntKey AS MediumB_IntKey, BQT2.LargeB.IntKey AS LargeB_IntKey
> FROM
> (
> BQT1.SmallA LEFT OUTER JOIN BQT2.MediumB
> ON BQT1.SmallA.IntKey = BQT2.MediumB.IntKey
> )
> RIGHT OUTER JOIN BQT2.LargeB
> ON BQT2.MediumB.IntKey = BQT2.LargeB.IntKey
> WHERE BQT2.LargeB.IntKey < 1500
> {code}
> The following source command is pushed to SAP IQ:
> {code:sql}
> SELECT g_1."intkey" AS c_0, g_2."intkey" AS c_1, g_0."intkey" AS c_2
> FROM
> "bqt-server"."dvqe"."LargeB" AS g_0
> LEFT OUTER JOIN
> "bqt-server"."dvqe"."SmallA" AS g_1
> INNER JOIN "bqt-server"."dvqe"."MediumB" AS g_2
> ON g_1."intkey" = g_2."intkey"
> ON g_2."intkey" = g_0."intkey"
> AND g_2."intkey" < 1500
> WHERE g_0."intkey" < 1500
> {code}
> Which results in parsing error.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months
[JBoss JIRA] (TEIID-5319) SAP IQ translator wrong pushdown of query with multiple JOINs
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-5319?page=com.atlassian.jira.plugin... ]
Work on TEIID-5319 started by Steven Hawkins.
---------------------------------------------
> SAP IQ translator wrong pushdown of query with multiple JOINs
> -------------------------------------------------------------
>
> Key: TEIID-5319
> URL: https://issues.jboss.org/browse/TEIID-5319
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 8.12.13.6_4
> Reporter: Jan Stastny
> Assignee: Steven Hawkins
> Priority: Critical
>
> For a query:
> {code:sql}
> SELECT BQT1.SmallA.IntKey AS SmallA_IntKey, BQT2.MediumB.IntKey AS MediumB_IntKey, BQT2.LargeB.IntKey AS LargeB_IntKey
> FROM
> (
> BQT1.SmallA LEFT OUTER JOIN BQT2.MediumB
> ON BQT1.SmallA.IntKey = BQT2.MediumB.IntKey
> )
> RIGHT OUTER JOIN BQT2.LargeB
> ON BQT2.MediumB.IntKey = BQT2.LargeB.IntKey
> WHERE BQT2.LargeB.IntKey < 1500
> {code}
> The following source command is pushed to SAP IQ:
> {code:sql}
> SELECT g_1."intkey" AS c_0, g_2."intkey" AS c_1, g_0."intkey" AS c_2
> FROM
> "bqt-server"."dvqe"."LargeB" AS g_0
> LEFT OUTER JOIN
> "bqt-server"."dvqe"."SmallA" AS g_1
> INNER JOIN "bqt-server"."dvqe"."MediumB" AS g_2
> ON g_1."intkey" = g_2."intkey"
> ON g_2."intkey" = g_0."intkey"
> AND g_2."intkey" < 1500
> WHERE g_0."intkey" < 1500
> {code}
> Which results in parsing error.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months
[JBoss JIRA] (TEIID-5319) SAP IQ translator wrong pushdown of query with multiple JOINs
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/TEIID-5319?page=com.atlassian.jira.plugin... ]
RH Bugzilla Integration updated TEIID-5319:
-------------------------------------------
Bugzilla References: https://bugzilla.redhat.com/show_bug.cgi?id=1569509
Bugzilla Update: Perform
> SAP IQ translator wrong pushdown of query with multiple JOINs
> -------------------------------------------------------------
>
> Key: TEIID-5319
> URL: https://issues.jboss.org/browse/TEIID-5319
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 8.12.13.6_4
> Reporter: Jan Stastny
> Assignee: Steven Hawkins
> Priority: Critical
>
> For a query:
> {code:sql}
> SELECT BQT1.SmallA.IntKey AS SmallA_IntKey, BQT2.MediumB.IntKey AS MediumB_IntKey, BQT2.LargeB.IntKey AS LargeB_IntKey
> FROM
> (
> BQT1.SmallA LEFT OUTER JOIN BQT2.MediumB
> ON BQT1.SmallA.IntKey = BQT2.MediumB.IntKey
> )
> RIGHT OUTER JOIN BQT2.LargeB
> ON BQT2.MediumB.IntKey = BQT2.LargeB.IntKey
> WHERE BQT2.LargeB.IntKey < 1500
> {code}
> The following source command is pushed to SAP IQ:
> {code:sql}
> SELECT g_1."intkey" AS c_0, g_2."intkey" AS c_1, g_0."intkey" AS c_2
> FROM
> "bqt-server"."dvqe"."LargeB" AS g_0
> LEFT OUTER JOIN
> "bqt-server"."dvqe"."SmallA" AS g_1
> INNER JOIN "bqt-server"."dvqe"."MediumB" AS g_2
> ON g_1."intkey" = g_2."intkey"
> ON g_2."intkey" = g_0."intkey"
> AND g_2."intkey" < 1500
> WHERE g_0."intkey" < 1500
> {code}
> Which results in parsing error.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months
[JBoss JIRA] (TEIID-5319) SAP IQ translator wrong pushdown of query with multiple JOINs
by Jan Stastny (JIRA)
Jan Stastny created TEIID-5319:
----------------------------------
Summary: SAP IQ translator wrong pushdown of query with multiple JOINs
Key: TEIID-5319
URL: https://issues.jboss.org/browse/TEIID-5319
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.12.13.6_4
Reporter: Jan Stastny
Assignee: Steven Hawkins
Priority: Critical
For a query:
{code:sql}
SELECT BQT1.SmallA.IntKey AS SmallA_IntKey, BQT2.MediumB.IntKey AS MediumB_IntKey, BQT2.LargeB.IntKey AS LargeB_IntKey
FROM
(
BQT1.SmallA LEFT OUTER JOIN BQT2.MediumB
ON BQT1.SmallA.IntKey = BQT2.MediumB.IntKey
)
RIGHT OUTER JOIN BQT2.LargeB
ON BQT2.MediumB.IntKey = BQT2.LargeB.IntKey
WHERE BQT2.LargeB.IntKey < 1500
{code}
The following source command is pushed to SAP IQ:
{code:sql}
SELECT g_1."intkey" AS c_0, g_2."intkey" AS c_1, g_0."intkey" AS c_2
FROM
"bqt-server"."dvqe"."LargeB" AS g_0
LEFT OUTER JOIN
"bqt-server"."dvqe"."SmallA" AS g_1
INNER JOIN "bqt-server"."dvqe"."MediumB" AS g_2
ON g_1."intkey" = g_2."intkey"
ON g_2."intkey" = g_0."intkey"
AND g_2."intkey" < 1500
WHERE g_0."intkey" < 1500
{code}
Which results in parsing error.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months