[JBoss JIRA] (TEIID-3685) org.teiid.padSpace does not affect to the "IN" operator
by Johnathon Lee (JIRA)
[ https://issues.jboss.org/browse/TEIID-3685?page=com.atlassian.jira.plugin... ]
Johnathon Lee updated TEIID-3685:
---------------------------------
Fix Version/s: 8.7.7.6_2
> org.teiid.padSpace does not affect to the "IN" operator
> -------------------------------------------------------
>
> Key: TEIID-3685
> URL: https://issues.jboss.org/browse/TEIID-3685
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.7.1
> Environment: JBoss DV 6.1.2
> Reporter: hisao furuichi
> Assignee: Steven Hawkins
> Priority: Critical
> Fix For: 9.0, 8.7.7.6_2, 8.13.6, 9.0.1
>
> Attachments: datasert.csv, INTERNAL_TEST.zip, test.vdb
>
>
> org.teiid.padSpace does affect to "=" operator. But does not affect to "IN" operator.
> [data for a column named "id"]
> {noformat}
> "test1 "
> {noformat}
> ["=" operator] I can get a result
> {noformat}
> SELECT * FROM ViewModel.originalViewTable WHERE ViewModel.originalViewTable.id ='TEST1';
> {noformat}
> ["IN" operator] I can not get a result
> {noformat}
> SELECT * FROM ViewModel.originalViewTable WHERE ViewModel.originalViewTable.id IN ('TEST1', 'TEST2');
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 3 months
[JBoss JIRA] (TEIID-4273) With clause used in evaluatable subquery in a fully pushed user query is seen as missing temp table
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-4273?page=com.atlassian.jira.plugin... ]
Steven Hawkins updated TEIID-4273:
----------------------------------
Fix Version/s: 8.12.5
> With clause used in evaluatable subquery in a fully pushed user query is seen as missing temp table
> ---------------------------------------------------------------------------------------------------
>
> Key: TEIID-4273
> URL: https://issues.jboss.org/browse/TEIID-4273
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.7
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Fix For: 9.1, 8.12.5, 8.7.7.6_2, 9.0.1
>
>
> A query such as:
> WITH qry_0 as /\*+ no_inline */ (SELECT e2 AS a1, e1 as str FROM pm1.g1 AS t), qry_1 as /\*+ no_inline */ (SELECT 'b' AS a1) select (select a1 || 'a' from qry_1) as x, a1 from qry_0
> where the projected scalar subquery cannot be pushed down, but the rest of the query can will result in the with plan for qry_1 not being associated with the parent RelationalPlan and results in an exception that the temporary table cannot be found. This does not occur if the clause is inlined (9.0+).
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 3 months
[JBoss JIRA] (TEIID-4272) NPE when CTE and subuquery without a WITH clause are pushed together
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-4272?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-4272.
-----------------------------------
Resolution: Done
Moved the check to remove the with clause.
> NPE when CTE and subuquery without a WITH clause are pushed together
> --------------------------------------------------------------------
>
> Key: TEIID-4272
> URL: https://issues.jboss.org/browse/TEIID-4272
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.12
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Fix For: 9.1, 8.12.5, 9.0.1
>
>
> With a query such as:
> WITH qry_0 as /*+ no_inline */ (SELECT e2 AS a1, e1 as str FROM pm1.g1 AS t) select (select e1 from pm1.g1) as x, a1 from qry_0
> that is pushed together to the source, the relationalplanner will throw an NPE when pulling up any nested with clauses because there is no with clause assigned to the subquery.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 3 months
[JBoss JIRA] (TEIID-4272) NPE when CTE and subuquery without a WITH clause are pushed together
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-4272?page=com.atlassian.jira.plugin... ]
Steven Hawkins updated TEIID-4272:
----------------------------------
Fix Version/s: 8.12.5
> NPE when CTE and subuquery without a WITH clause are pushed together
> --------------------------------------------------------------------
>
> Key: TEIID-4272
> URL: https://issues.jboss.org/browse/TEIID-4272
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.12
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Fix For: 9.1, 8.12.5, 9.0.1
>
>
> With a query such as:
> WITH qry_0 as /*+ no_inline */ (SELECT e2 AS a1, e1 as str FROM pm1.g1 AS t) select (select e1 from pm1.g1) as x, a1 from qry_0
> that is pushed together to the source, the relationalplanner will throw an NPE when pulling up any nested with clauses because there is no with clause assigned to the subquery.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 3 months
[JBoss JIRA] (TEIID-3685) org.teiid.padSpace does not affect to the "IN" operator
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3685?page=com.atlassian.jira.plugin... ]
Steven Hawkins updated TEIID-3685:
----------------------------------
Fix Version/s: 8.13.6
> org.teiid.padSpace does not affect to the "IN" operator
> -------------------------------------------------------
>
> Key: TEIID-3685
> URL: https://issues.jboss.org/browse/TEIID-3685
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.7.1
> Environment: JBoss DV 6.1.2
> Reporter: hisao furuichi
> Assignee: Steven Hawkins
> Priority: Critical
> Fix For: 9.0, 8.13.6, 9.0.1
>
> Attachments: datasert.csv, INTERNAL_TEST.zip, test.vdb
>
>
> org.teiid.padSpace does affect to "=" operator. But does not affect to "IN" operator.
> [data for a column named "id"]
> {noformat}
> "test1 "
> {noformat}
> ["=" operator] I can get a result
> {noformat}
> SELECT * FROM ViewModel.originalViewTable WHERE ViewModel.originalViewTable.id ='TEST1';
> {noformat}
> ["IN" operator] I can not get a result
> {noformat}
> SELECT * FROM ViewModel.originalViewTable WHERE ViewModel.originalViewTable.id IN ('TEST1', 'TEST2');
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 3 months
[JBoss JIRA] (TEIID-3685) org.teiid.padSpace does not affect to the "IN" operator
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3685?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-3685.
-----------------------------------
Fix Version/s: 9.0.1
9.0
(was: 8.12)
(was: 8.11.4)
(was: 8.7.2.6_2)
Resolution: Done
Also needed to correct the clone method for this to work as expected for temporary tables - and it would also affect other scenarios where the criteria was cloned, but not fully pushed to a non-temporary source.
> org.teiid.padSpace does not affect to the "IN" operator
> -------------------------------------------------------
>
> Key: TEIID-3685
> URL: https://issues.jboss.org/browse/TEIID-3685
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.7.1
> Environment: JBoss DV 6.1.2
> Reporter: hisao furuichi
> Assignee: Steven Hawkins
> Fix For: 9.0.1, 9.0
>
> Attachments: datasert.csv, INTERNAL_TEST.zip, test.vdb
>
>
> org.teiid.padSpace does affect to "=" operator. But does not affect to "IN" operator.
> [data for a column named "id"]
> {noformat}
> "test1 "
> {noformat}
> ["=" operator] I can get a result
> {noformat}
> SELECT * FROM ViewModel.originalViewTable WHERE ViewModel.originalViewTable.id ='TEST1';
> {noformat}
> ["IN" operator] I can not get a result
> {noformat}
> SELECT * FROM ViewModel.originalViewTable WHERE ViewModel.originalViewTable.id IN ('TEST1', 'TEST2');
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 3 months