public class ProjStarInUdfExpander extends AllExpressionVisitor
ProjectStarExpander
because in those
cases, the project star gets expanded as new LogicalExpressionPlan
.
In case of project-star or project-range within udf, it should get expanded
only as multiple inputs to this udf, no addtional LogicalExpressionPlan
s
are created.
The expansion happens only if input schema is not nullcurrentOp
currentWalker, DEFAULT_SCOPE, plan
Constructor and Description |
---|
ProjStarInUdfExpander(OperatorPlan plan) |
Modifier and Type | Method and Description |
---|---|
protected LogicalExpressionVisitor |
getVisitor(LogicalExpressionPlan exprPlan)
Get a new instance of the expression visitor to apply to
a given expression.
|
void |
visit(LOForEach foreach) |
void |
visit(LOGenerate gen) |
visit, visit, visit, visit, visit, visit, visit, visit, visit
visit, visit, visit, visit, visit, visit, visit, visit
getPlan, popWalker, pushWalker, visit
public ProjStarInUdfExpander(OperatorPlan plan) throws FrontendException
FrontendException
protected LogicalExpressionVisitor getVisitor(LogicalExpressionPlan exprPlan) throws FrontendException
AllExpressionVisitor
getVisitor
in class AllExpressionVisitor
exprPlan
- LogicalExpressionPlan that will be visitedFrontendException
public void visit(LOForEach foreach) throws FrontendException
visit
in class AllExpressionVisitor
FrontendException
public void visit(LOGenerate gen) throws FrontendException
visit
in class AllExpressionVisitor
FrontendException
Copyright © 2007-2017 The Apache Software Foundation