Package org.apache.pig.impl.logicalLayer.optimizer

Examples of org.apache.pig.impl.logicalLayer.optimizer.OpLimitOptimizer


    @Test
    //Test to ensure that the right exception is thrown
    public void testErrOpLimitOptimizer() throws Exception {
      org.apache.pig.impl.logicalLayer.LogicalPlan lp = new org.apache.pig.impl.logicalLayer.LogicalPlan();
        OpLimitOptimizer olo = new OpLimitOptimizer(lp);
        try {
            olo.transform(lp.getRoots());
        } catch(Exception e) {
            Assert.assertTrue(((OptimizerException)e).getErrorCode() == 2052);
        }
    }
View Full Code Here


   
    @Test
    //Test to ensure that the right exception is thrown
    public void testErrOpLimitOptimizer() throws Exception {
        LogicalPlan lp = new LogicalPlan();
        OpLimitOptimizer olo = new OpLimitOptimizer(lp);
        try {
            olo.transform(lp.getRoots());
        } catch(Exception e) {
            assertTrue(((OptimizerException)e).getErrorCode() == 2052);
        }
    }
View Full Code Here

   
    @Test
    //Test to ensure that the right exception is thrown
    public void testErrOpLimitOptimizer() throws Exception {
        LogicalPlan lp = new LogicalPlan();
        OpLimitOptimizer olo = new OpLimitOptimizer(lp);
        try {
            olo.transform(lp.getRoots());
        } catch(Exception e) {
            assertTrue(((OptimizerException)e).getErrorCode() == 2052);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.pig.impl.logicalLayer.optimizer.OpLimitOptimizer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.