[teiid-issues] [JBoss JIRA] (TEIID-4126) PlanToProcessConverter logical conjunction contains condition with no effect (x==x)
Steven Hawkins (JIRA)
issues at jboss.org
Mon Apr 11 12:58:00 EDT 2016
[ https://issues.jboss.org/browse/TEIID-4126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven Hawkins updated TEIID-4126:
----------------------------------
Fix Version/s: 9.0
Priority: Minor (was: Major)
Affects Version/s: 8.9
(was: 9.x)
> PlanToProcessConverter logical conjunction contains condition with no effect (x==x)
> -----------------------------------------------------------------------------------
>
> Key: TEIID-4126
> URL: https://issues.jboss.org/browse/TEIID-4126
> Project: Teiid
> Issue Type: Quality Risk
> Components: Query Engine
> Affects Versions: 8.9
> Reporter: Jan Stastny
> Assignee: Steven Hawkins
> Priority: Minor
> Fix For: 9.0
>
>
> There is a condition with no effect on resulting boolean value:
> https://github.com/teiid/teiid/blob/6e31f7c3a576ae85fd96dd4003790064552b9110/engine/src/main/java/org/teiid/query/optimizer/relational/PlanToProcessConverter.java#L163
> The code in question is:
> {code:java}
> childNode.getProperty(Info.SET_OPERATION) == childNode.getProperty(Info.SET_OPERATION)
> {code}
> which is always true (comparation of exactly the same objects).
> Given the fact that the boolean expression is a conjunction, it does not affect the accessibility of the following code.
> But if it should be another condition instead, it might be a problem.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the teiid-issues
mailing list