Skip to content

Commit

Permalink
TEIID-4451 fixing aggregate handling
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Sep 19, 2016
1 parent 8f7d2d5 commit c7c07bb
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -1729,10 +1729,10 @@ public void closeSource() {
TestProcessor.helpProcess(pp, dataManager, new List[] {Arrays.asList("a", "b", "a2"), Arrays.asList("a1", "b1", "b2")});
}

@Test public void testAggSubqueryAsJoin() throws Exception {
@Test public void testAggSubqueryAsJoin() throws Exception {
String sql = "SELECT INTKEY, LONGNUM FROM BQT1.SMALLA AS A WHERE LONGNUM > (SELECT SUM(LONGNUM) FROM BQT1.SMALLA AS B WHERE A.INTKEY = B.INTKEY) ORDER BY INTKEY"; //$NON-NLS-1$

TransformationMetadata metadata = RealMetadataFactory.exampleBQTCached();
TransformationMetadata metadata = RealMetadataFactory.exampleBQT();
RealMetadataFactory.setCardinality("BQT1.smalla", 1000, metadata);

HardcodedDataManager dataMgr = new HardcodedDataManager();
Expand All @@ -1748,6 +1748,6 @@ public void closeSource() {
ProcessorPlan pp = TestProcessor.helpGetPlan(sql, metadata, new DefaultCapabilitiesFinder(bsc));

TestProcessor.helpProcess(pp, dataMgr, new List[] {});
}
}

}

0 comments on commit c7c07bb

Please sign in to comment.