Package org.apache.calcite.test
Class PigRelBuilderStyleTest
- java.lang.Object
-
- org.apache.calcite.test.AbstractPigTest
-
- org.apache.calcite.test.PigRelBuilderStyleTest
-
public class PigRelBuilderStyleTest extends AbstractPigTest
Tests for theorg.apache.calcite.adapter.pig
package that tests the building ofPigRel
relational expressions usingRelBuilder
and associated factories inPigRelFactories
.
-
-
Constructor Summary
Constructors Constructor Description PigRelBuilderStyleTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
assertScriptAndResults(java.lang.String relAliasForStore, java.lang.String script, java.lang.String expectedScript, java.lang.String[] expectedResults)
private org.apache.calcite.tools.RelBuilder
createRelBuilder(org.apache.calcite.schema.SchemaPlus schema)
private org.apache.calcite.schema.SchemaPlus
createTestSchema()
private java.lang.String
getPigScript(org.apache.calcite.rel.RelNode root, org.apache.calcite.schema.Schema schema)
private org.apache.calcite.plan.RelOptPlanner
getVolcanoPlanner(org.apache.calcite.rel.RelNode root)
private org.apache.calcite.rel.RelNode
optimizeWithVolcano(org.apache.calcite.rel.RelNode root)
void
setupDataFilesForPigServer()
void
shutdownPigServer()
void
testImplWithCountWithoutGroupBy()
void
testImplWithGroupByAndCount()
void
testImplWithGroupByCountDistinct()
void
testImplWithGroupByMultipleFields()
void
testImplWithJoin()
void
testImplWithJoinAndGroupBy()
void
testImplWithMultipleFilters()
void
testScanAndFilter()
-
Methods inherited from class org.apache.calcite.test.AbstractPigTest
getFullPathForTestDataFile
-
-
-
-
Method Detail
-
testScanAndFilter
public void testScanAndFilter() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testImplWithMultipleFilters
public void testImplWithMultipleFilters()
-
testImplWithGroupByAndCount
public void testImplWithGroupByAndCount()
-
testImplWithCountWithoutGroupBy
public void testImplWithCountWithoutGroupBy()
-
testImplWithGroupByMultipleFields
public void testImplWithGroupByMultipleFields()
-
testImplWithGroupByCountDistinct
public void testImplWithGroupByCountDistinct()
-
testImplWithJoin
public void testImplWithJoin() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testImplWithJoinAndGroupBy
public void testImplWithJoinAndGroupBy() throws java.lang.Exception
- Throws:
java.lang.Exception
-
createTestSchema
private org.apache.calcite.schema.SchemaPlus createTestSchema()
-
createRelBuilder
private org.apache.calcite.tools.RelBuilder createRelBuilder(org.apache.calcite.schema.SchemaPlus schema)
-
optimizeWithVolcano
private org.apache.calcite.rel.RelNode optimizeWithVolcano(org.apache.calcite.rel.RelNode root)
-
getVolcanoPlanner
private org.apache.calcite.plan.RelOptPlanner getVolcanoPlanner(org.apache.calcite.rel.RelNode root)
-
assertScriptAndResults
private void assertScriptAndResults(java.lang.String relAliasForStore, java.lang.String script, java.lang.String expectedScript, java.lang.String[] expectedResults)
-
getPigScript
private java.lang.String getPigScript(org.apache.calcite.rel.RelNode root, org.apache.calcite.schema.Schema schema)
-
shutdownPigServer
public void shutdownPigServer()
-
setupDataFilesForPigServer
public void setupDataFilesForPigServer() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-