Class PigletTest


  • public class PigletTest
    extends java.lang.Object
    Unit tests for Piglet.
    • Constructor Detail

      • PigletTest

        public PigletTest()
    • Method Detail

      • pig

        private static Fluent pig​(java.lang.String pig)
      • testParseLoad

        public void testParseLoad()
                           throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testParse2

        public void testParse2()
                        throws org.apache.calcite.piglet.parser.ParseException
        Tests parsing and un-parsing all kinds of operators.
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testScan

        public void testScan()
                      throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testDump

        public void testDump()
                      throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testDumpValues

        public void testDumpValues()
                            throws org.apache.calcite.piglet.parser.ParseException
        VALUES is an extension to Pig. You can achieve the same effect in standard Pig by creating a text file.
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testForeach

        public void testForeach()
                         throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testForeachNested

        public void testForeachNested()
                               throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testGroup

        public void testGroup()
                       throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testGroupExample

        public void testGroupExample()
                              throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testDistinctExample

        public void testDistinctExample()
                                 throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testFilter

        public void testFilter()
                        throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testFilterExample

        public void testFilterExample()
                               throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testLimit

        public void testLimit()
                       throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testLimitExample

        public void testLimitExample()
                              throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testOrder

        public void testOrder()
                       throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testOrderStar

        public void testOrderStar()
                           throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testOrderExample

        public void testOrderExample()
                              throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testValues

        public void testValues()
                        throws org.apache.calcite.piglet.parser.ParseException
        VALUES is an extension to Pig. You can achieve the same effect in standard Pig by creating a text file.
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • testValuesNested

        public void testValuesNested()
                              throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException