net.sf.farrago.test
Class FarragoOptRulesTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.eigenbase.test.DiffTestCase
net.sf.farrago.test.ResultSetTestCase
net.sf.farrago.test.FarragoTestCase
net.sf.farrago.test.FarragoSqlToRelTestBase
net.sf.farrago.test.FarragoOptRulesTest
- All Implemented Interfaces:
- Test
public class FarragoOptRulesTest
- extends FarragoSqlToRelTestBase
FarragoOptRulesTest is like RelOptRulesTest
, but for rules specific
to Farrago.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/test/FarragoOptRulesTest.java#28 $
- Author:
- John V. Sichi
Methods inherited from class net.sf.farrago.test.FarragoTestCase |
forceShutdown, getJdbcUri, getSession, getTestlogRoot, getTestlogRootStatic, newConnection, newJdbcEngineDriver, restoreParameters, restoreParameters, runCleanup, runSqlLineTest, runSqlLineTest, saveParameters, saveParameters, setRefFileDiffMasks, shouldDiff, staticSetUp, staticTearDown, tearDown, tearDownImpl, wrappedSuite, wrappedSuite |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
NL
protected static final String NL
doneStaticSetup
private static boolean doneStaticSetup
program
private HepProgram program
FarragoOptRulesTest
public FarragoOptRulesTest(String testName)
throws Exception
- Creates a new FarragoOptRulesTest object.
- Parameters:
testName
- JUnit test name
- Throws:
Exception
- .
suite
public static Test suite()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class FarragoTestCase
- Throws:
Exception
getDiffRepos
protected DiffRepository getDiffRepos()
checkAbstract
protected void checkAbstract(FarragoPreparingStmt stmt,
RelNode relBefore)
throws Exception
- Specified by:
checkAbstract
in class FarragoSqlToRelTestBase
- Throws:
Exception
check
private void check(HepProgram program,
String sql)
throws Exception
- Throws:
Exception
check
private void check(HepProgram program,
String sql,
List<RelOptRule> rules)
throws Exception
- Throws:
Exception
check
private void check(RelOptRule rule,
String sql)
throws Exception
- Throws:
Exception
initPlanner
protected void initPlanner(FarragoPreparingStmt stmt)
- Specified by:
initPlanner
in class FarragoSqlToRelTestBase
testMergeFilterWithJoinCondition
public void testMergeFilterWithJoinCondition()
throws Exception
- Throws:
Exception
testHeterogeneousConversion
public void testHeterogeneousConversion()
throws Exception
- Throws:
Exception
testFennelToIteratorConverterRule
public void testFennelToIteratorConverterRule()
throws Exception
- Throws:
Exception
testFtrsScanToSearchRule
public void testFtrsScanToSearchRule()
throws Exception
- Throws:
Exception
testFennelSortRule
public void testFennelSortRule()
throws Exception
- Throws:
Exception
testFennelCartesianJoinRule
public void testFennelCartesianJoinRule()
throws Exception
- Throws:
Exception
testFennelAggRule
public void testFennelAggRule()
throws Exception
- Throws:
Exception
testFtrsTableAccessRule
public void testFtrsTableAccessRule()
throws Exception
- Throws:
Exception
testFtrsTableProjectionRule
public void testFtrsTableProjectionRule()
throws Exception
- Throws:
Exception
testPushSemiJoinPastJoinRule_Left
public void testPushSemiJoinPastJoinRule_Left()
throws Exception
- Throws:
Exception
testPushSemiJoinPastJoinRule_Right
public void testPushSemiJoinPastJoinRule_Right()
throws Exception
- Throws:
Exception
testPushSemiJoinPastFilter
public void testPushSemiJoinPastFilter()
throws Exception
- Throws:
Exception
testConvertMultiJoinRule
public void testConvertMultiJoinRule()
throws Exception
- Throws:
Exception
testReduceConstants
public void testReduceConstants()
throws Exception
- Throws:
Exception
testReduceConstantsEliminatesFilter
public void testReduceConstantsEliminatesFilter()
throws Exception
- Throws:
Exception
testAlreadyFalseEliminatesFilter
public void testAlreadyFalseEliminatesFilter()
throws Exception
- Throws:
Exception
testReduceConstantsCalc
public void testReduceConstantsCalc()
throws Exception
- Throws:
Exception
testRemoveSemiJoin
public void testRemoveSemiJoin()
throws Exception
- Throws:
Exception
testRemoveSemiJoinWithFilter
public void testRemoveSemiJoinWithFilter()
throws Exception
- Throws:
Exception
testRemoveSemiJoinRight
public void testRemoveSemiJoinRight()
throws Exception
- Throws:
Exception
testRemoveSemiJoinRightWithFilter
public void testRemoveSemiJoinRightWithFilter()
throws Exception
- Throws:
Exception
testConvertMultiJoinRuleOuterJoins
public void testConvertMultiJoinRuleOuterJoins()
throws Exception
- Throws:
Exception
testPushSemiJoinPastProject
public void testPushSemiJoinPastProject()
throws Exception
- Throws:
Exception
testReduceValuesUnderFilter
public void testReduceValuesUnderFilter()
throws Exception
- Throws:
Exception
testReduceValuesUnderProject
public void testReduceValuesUnderProject()
throws Exception
- Throws:
Exception
testReduceValuesUnderProjectFilter
public void testReduceValuesUnderProjectFilter()
throws Exception
- Throws:
Exception
testReduceValuesNull
public void testReduceValuesNull()
throws Exception
- Throws:
Exception
testReduceValuesToEmpty
public void testReduceValuesToEmpty()
throws Exception
- Throws:
Exception
testEmptyFilterProjectUnion
public void testEmptyFilterProjectUnion()
throws Exception
- Throws:
Exception
testReduceCasts
public void testReduceCasts()
throws Exception
- Throws:
Exception
testReduceCastAndConsts
public void testReduceCastAndConsts()
throws Exception
- Throws:
Exception
testReduceCastsNullable
public void testReduceCastsNullable()
throws Exception
- Throws:
Exception
testPushAggThroughUnion
public void testPushAggThroughUnion()
throws Exception
- Throws:
Exception
testFennelBufferCommonRelSubExprRule
public void testFennelBufferCommonRelSubExprRule()
throws Exception
- Throws:
Exception