[JBoss JIRA] (TEIID-5319) SAP IQ translator wrong pushdown of query with multiple JOINs
by Johnathon Lee (JIRA)
[ https://issues.jboss.org/browse/TEIID-5319?page=com.atlassian.jira.plugin... ]
Johnathon Lee updated TEIID-5319:
---------------------------------
Fix Version/s: 8.12.13.6_4
> 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
> Fix For: 10.3, 10.2.1, 8.12.13.6_4, 10.1.4
>
>
> 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... ]
Steven Hawkins resolved TEIID-5319.
-----------------------------------
Fix Version/s: 10.1.4
10.3
10.2.1
Resolution: Done
Added the useParensForJoins option.
> 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
> Fix For: 10.1.4, 10.3, 10.2.1
>
>
> 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-5323) info logging of commands is too high by default for teiid embedded
by Steven Hawkins (JIRA)
Steven Hawkins created TEIID-5323:
-------------------------------------
Summary: info logging of commands is too high by default for teiid embedded
Key: TEIID-5323
URL: https://issues.jboss.org/browse/TEIID-5323
Project: Teiid
Issue Type: Task
Components: Query Engine
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 10.3
>From TEIID-5007 we had not resolved: Another issue that affects non-Wildfly usage are the defaults for command logging. For backwards compatibility the splitting of logging source/user level queries means that the user queries are logged at an info level - this may be too verbose. We could introduce a breaking/configurable change to alter this behavior.
--
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)
[ https://issues.jboss.org/browse/TEIID-5319?page=com.atlassian.jira.plugin... ]
Jan Stastny commented on TEIID-5319:
------------------------------------
[~shawkins]
Yes, the parentheses are needed, the original error I am getting for the actually pushed source cmd:
{code}
Error: SQL Anywhere Error -131: Syntax error near 'ON' on line 8
SQLState: 42W04
ErrorCode: 102
{code}
The issue is two ON statements in succession.
> 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-5321) SAP IQ numeric functions corner case differences
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-5321?page=com.atlassian.jira.plugin... ]
Steven Hawkins updated TEIID-5321:
----------------------------------
Fix Version/s: 10.x
> SAP IQ numeric functions corner case differences
> ------------------------------------------------
>
> Key: TEIID-5321
> URL: https://issues.jboss.org/browse/TEIID-5321
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 8.12.13.6_4
> Reporter: Jan Stastny
> Assignee: Steven Hawkins
> Priority: Minor
> Fix For: 10.x
>
>
> The following discrepancies in return values of numeric functions are caused by SAP IQ's behaviour.
> # COT(0)
> #* results in OutOfRange error in Teiid
> #* returns NULL in SAP IQ
> # EXP\(n\) - for n < -15
> #* result is 0 in Teiid
> #* result is in SAP IQ
> #** 0 for -15 > n >=-745
> #** NULL for n<=-746
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months
[JBoss JIRA] (TEIID-5321) SAP IQ numeric functions corner case differences
by Jan Stastny (JIRA)
Jan Stastny created TEIID-5321:
----------------------------------
Summary: SAP IQ numeric functions corner case differences
Key: TEIID-5321
URL: https://issues.jboss.org/browse/TEIID-5321
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.12.13.6_4
Reporter: Jan Stastny
Assignee: Steven Hawkins
Priority: Minor
The following discrepancies in return values of numeric functions are caused by SAP IQ's behaviour.
# COT(0)
#* results in OutOfRange error in Teiid
#* returns NULL in SAP IQ
# EXP\(n\) - for n < -15
#* result is 0 in Teiid
#* result is in SAP IQ
#** 0 for -15 > n >=-745
#** NULL for n<=-746
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 8 months