Class PigRelBuilderStyleTest


  • public class PigRelBuilderStyleTest
    extends AbstractPigTest
    Tests for the org.apache.calcite.adapter.pig package that tests the building of PigRel relational expressions using RelBuilder and associated factories in PigRelFactories.
    • Constructor Detail

      • PigRelBuilderStyleTest

        public PigRelBuilderStyleTest()
    • 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