Package org.apache.calcite.materialize
Class LatticeSuggesterTest
- java.lang.Object
-
- org.apache.calcite.materialize.LatticeSuggesterTest
-
public class LatticeSuggesterTest extends java.lang.Object
Unit tests forLatticeSuggester
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
LatticeSuggesterTest.Tester
Test helper.
-
Constructor Summary
Constructors Constructor Description LatticeSuggesterTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkFoodMartAll(boolean evolve)
private org.hamcrest.Matcher<java.util.List<org.apache.calcite.materialize.Lattice>>
hasDerivedColumnNames(int ordinal, java.lang.String... names)
private org.hamcrest.Matcher<java.util.List<org.apache.calcite.materialize.Lattice>>
hasMeasureNames(int ordinal, java.lang.String... names)
private org.hamcrest.BaseMatcher<java.util.List<org.apache.calcite.materialize.Lattice>>
isGraphs(java.lang.String... strings)
Creates a matcher that matches query graphs to strings.void
testAggregateExpression()
void
testContains()
void
testEmpDept()
Some basic query patterns on the Scott schema with "EMP" and "DEPT" tables.void
testEvolve()
void
testExpression()
void
testExpressionInAggregate()
void
testExpressionInJoin()
void
testFoodmart()
void
testFoodMartAll()
void
testFoodMartAllEvolve()
void
testSharedSnowflake()
-
-
-
Method Detail
-
testEmpDept
public void testEmpDept() throws java.lang.Exception
Some basic query patterns on the Scott schema with "EMP" and "DEPT" tables.- Throws:
java.lang.Exception
-
testFoodmart
public void testFoodmart() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAggregateExpression
public void testAggregateExpression() throws java.lang.Exception
- Throws:
java.lang.Exception
-
hasMeasureNames
private org.hamcrest.Matcher<java.util.List<org.apache.calcite.materialize.Lattice>> hasMeasureNames(int ordinal, java.lang.String... names)
-
hasDerivedColumnNames
private org.hamcrest.Matcher<java.util.List<org.apache.calcite.materialize.Lattice>> hasDerivedColumnNames(int ordinal, java.lang.String... names)
-
testSharedSnowflake
public void testSharedSnowflake() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testExpressionInAggregate
public void testExpressionInAggregate() throws java.lang.Exception
- Throws:
java.lang.Exception
-
checkFoodMartAll
private void checkFoodMartAll(boolean evolve) throws java.lang.Exception
- Throws:
java.lang.Exception
-
testFoodMartAll
public void testFoodMartAll() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testFoodMartAllEvolve
public void testFoodMartAllEvolve() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testContains
public void testContains() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testEvolve
public void testEvolve() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testExpression
public void testExpression() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testExpressionInJoin
public void testExpressionInJoin() throws java.lang.Exception
- Throws:
java.lang.Exception
-
isGraphs
private org.hamcrest.BaseMatcher<java.util.List<org.apache.calcite.materialize.Lattice>> isGraphs(java.lang.String... strings)
Creates a matcher that matches query graphs to strings.
-
-