Package org.apache.pig.impl.plan

Examples of org.apache.pig.impl.plan.VisitorException


    protected void visit(LONative nat) throws VisitorException{
        try {
            nat.getSchema();
            super.visit(nat);
        } catch (FrontendException fe) {
            throw new VisitorException(fe);
        }
    }
View Full Code Here


    protected void visit(LOStore store) throws VisitorException{
        try {
            store.getSchema();
            super.visit(store);
        } catch (FrontendException fe) {
            throw new VisitorException(fe);
        }
    }
View Full Code Here

    protected void visit(LOConst c) throws VisitorException{
        try {
            c.getFieldSchema();
            super.visit(c);
        } catch (FrontendException fe) {
            throw new VisitorException(fe);
        }
    }
View Full Code Here

    protected void visit(LOUnion u) throws VisitorException {
        try {
            u.getSchema();
            super.visit(u);
        } catch (FrontendException fe) {
            throw new VisitorException(fe);
        }
    }
View Full Code Here

    protected void visit(LOSplitOutput sop) throws VisitorException {
        try {
            sop.getSchema();
            super.visit(sop);
        } catch (FrontendException fe) {
            throw new VisitorException(fe);
        }
    }
View Full Code Here

    protected void visit(LODistinct dt) throws VisitorException {
        try {
            dt.getSchema();
            super.visit(dt);
        } catch (FrontendException fe) {
            throw new VisitorException(fe);
        }
    }
View Full Code Here

    protected void visit(LOCross cs) throws VisitorException {
        try {
            cs.getSchema();
            super.visit(cs);
        } catch (FrontendException fe) {
            throw new VisitorException(fe);
        }
    }
View Full Code Here

    protected void visit(LOProject project) throws VisitorException {
        try {
            project.getFieldSchema();
            super.visit(project);
        } catch (FrontendException fe) {
            throw new VisitorException(fe);
        }
    }
View Full Code Here

                v.visit();
               
                expPlans.add(v.exprPlan);
            }
        } catch (FrontendException e) {
            throw new VisitorException("Cannot create ForeachInnerPlanVisitor", e);
        }
       
        newForeach.setAlias(forEach.getAlias());
        newForeach.setRequestedParallelism(forEach.getRequestedParallelism());
       
View Full Code Here

                for(LogicalPlan lp: mapGByPlans.get(op)) {
                    if(checkPlanForProjectStar(lp)) {
                        // not following Error handling guidelines to give error code
                        // and error source since this will get swallowed by the parser
                        // which will just return a ParseException
                        throw new VisitorException("Cogroup/Group by * is only allowed if " +
                            "the input has a schema");
                    }
                }
            }
            // check if after translation all group by plans have same arity
            int arity = mapGByPlans.get(cg.getInputs().get(0)).size();
            for(LogicalOperator op: cg.getInputs()) {
                if(arity != mapGByPlans.get(op).size()) {
                    // not following Error handling guidelines to give error code
                    // and error source since this will get swallowed by the parser
                    // which will just return a ParseException
                    throw new VisitorException("The arity of cogroup/group by columns " +
                        "do not match");
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.pig.impl.plan.VisitorException

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.