Author: shawkins
Date: 2011-03-22 10:51:13 -0400 (Tue, 22 Mar 2011)
New Revision: 3017
Modified:
trunk/engine/src/main/java/org/teiid/query/optimizer/relational/rules/NewCalculateCostUtil.java
Log:
TEIID-1522 a better costing value for constant expressions
Modified:
trunk/engine/src/main/java/org/teiid/query/optimizer/relational/rules/NewCalculateCostUtil.java
===================================================================
---
trunk/engine/src/main/java/org/teiid/query/optimizer/relational/rules/NewCalculateCostUtil.java 2011-03-22
14:43:07 UTC (rev 3016)
+++
trunk/engine/src/main/java/org/teiid/query/optimizer/relational/rules/NewCalculateCostUtil.java 2011-03-22
14:51:13 UTC (rev 3017)
@@ -608,7 +608,7 @@
static float getStat(Stat stat, Collection<? extends Expression> elems,
PlanNode node,
float cardinality, QueryMetadataInterface metadata) throws QueryMetadataException,
TeiidComponentException {
- float result = 0;
+ float result = 1;
int branch = 0;
boolean branchFound = false;
for (Expression expression : elems) {
Show replies by date