[JBoss JIRA] (TEIID-2475) The RelationalNode.collectNodeStats is only subtracting out the last node
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/TEIID-2475?page=com.atlassian.jira.plugin... ]
RH Bugzilla Integration commented on TEIID-2475:
------------------------------------------------
belong(a)redhat.com made a comment on [bug 967982|https://bugzilla.redhat.com/show_bug.cgi?id=967982]
Fixed before GA - setting to requires_doc_text- accordingly
> The RelationalNode.collectNodeStats is only subtracting out the last node
> -------------------------------------------------------------------------
>
> Key: TEIID-2475
> URL: https://issues.jboss.org/browse/TEIID-2475
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 6.0.0
> Reporter: Debbie Steigner
> Assignee: Steven Hawkins
> Fix For: 8.4.1, 8.5
>
> Attachments: Query_Plan.txt
>
>
> The "Node Cumulative Next Batch Process Time" Statistic
> If you have a look at the explain plan (attached). Following the definition,
> the JoinNode Node Cumulative Next Batch Process Time: 565471. So, it is the summation of AccessNode (Node Process Time: 892860) + DependentAccessNode (Node Process Time: 439) + JoinNode (Node Process Time: 2203120). The summation does not agree.
> The RelationalNode.collectNodeStats looks wrong (it's effectively only subtracting out the last node)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 1 month
[JBoss JIRA] (TEIID-2188) When using CONCAT2(x, y), can the source query be changed to not include the CASE statements and let Oracle do the NULL compare
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/TEIID-2188?page=com.atlassian.jira.plugin... ]
RH Bugzilla Integration commented on TEIID-2188:
------------------------------------------------
belong(a)redhat.com made a comment on [bug 855016|https://bugzilla.redhat.com/show_bug.cgi?id=855016]
Fixed before GA - setting to requires_doc_text- accordingly
> When using CONCAT2(x, y), can the source query be changed to not include the CASE statements and let Oracle do the NULL compare
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: TEIID-2188
> URL: https://issues.jboss.org/browse/TEIID-2188
> Project: Teiid
> Issue Type: Enhancement
> Components: Query Engine
> Affects Versions: 7.4.4
> Reporter: Van Halbert
> Assignee: Steven Hawkins
> Fix For: 8.2
>
>
> When CONCAT2(x, y) is used, the rewritten query is very verbose in adding a CASE statement to check for nulls. Can the rewritten query not include the CASE statements and just let Oracle do the compare, because it can do it more efficiently within the CONCAT call?
> Example:
> select concat2(f1,f2) from table1
> results in
> SELECT c_0 FROM (SELECT CASE WHEN to_char(g_0.f1) IS NULL AND g_0.f2 IS NULL THEN NULL ELSE concat(nvl(to_char(g_0.f1), ''), nvl(g_0.f2, '')) END AS c_0 FROM table1 g_0)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 1 month
[JBoss JIRA] (TEIID-2745) Evaluatable subquery in ON clause produces invalid query
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-2745?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-2745.
-----------------------------------
Resolution: Done
Corrected the rewriter.
> Evaluatable subquery in ON clause produces invalid query
> --------------------------------------------------------
>
> Key: TEIID-2745
> URL: https://issues.jboss.org/browse/TEIID-2745
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 7.7
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Fix For: 8.6
>
>
> Using an evaluatable subquery, such as a scalar subquery in an outer join on clause will result in all criteria being removed and an invalid source query being issued.
> For example:
> with a (x, y, z) as (select e1, e2, e3 from pm1.g1 limit 1) SELECT pm2.g1.e1 from pm2.g1 left outer join pm2.g2 on (pm2.g1.e2 = pm2.g2.e2 and pm2.g1.e1 = (select a.x from a))
> And a source that doesn't support with (or the with clause cannot be pushed as part of the main query), then the evaluation of the scalar subquery will block and cause the issue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 1 month
[JBoss JIRA] (TEIID-2745) Evaluatable subquery in ON clause produces invalid query
by Steven Hawkins (JIRA)
Steven Hawkins created TEIID-2745:
-------------------------------------
Summary: Evaluatable subquery in ON clause produces invalid query
Key: TEIID-2745
URL: https://issues.jboss.org/browse/TEIID-2745
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 7.7
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 8.6
Using an evaluatable subquery, such as a scalar subquery in an outer join on clause will result in all criteria being removed and an invalid source query being issued.
For example:
with a (x, y, z) as (select e1, e2, e3 from pm1.g1 limit 1) SELECT pm2.g1.e1 from pm2.g1 left outer join pm2.g2 on (pm2.g1.e2 = pm2.g2.e2 and pm2.g1.e1 = (select a.x from a))
And a source that doesn't support with (or the with clause cannot be pushed as part of the main query), then the evaluation of the scalar subquery will block and cause the issue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 1 month