assertTrue(cost == NewCalculateCostUtil.UNKNOWN_VALUE);
}
@Ignore("this logic needs to be refined to work better")
@Test public void testEstimateJoinNodeCostOneUnknown() throws Exception {
QueryMetadataInterface metadata = FakeMetadataFactory.example4();
PlanNode joinNode = helpGetJoinNode(NewCalculateCostUtil.UNKNOWN_VALUE, 500, JoinType.JOIN_INNER);
joinNode.setProperty(NodeConstants.Info.JOIN_CRITERIA, Arrays.asList(helpGetCriteria("pm1.g1.e1 = pm1.g2.e1", metadata)));
float cost = NewCalculateCostUtil.computeCostForTree(joinNode, metadata);
assertEquals(10000, cost, 0);
}