Class AdjustOperatorsSchemaVisitor

java.lang.Object
org.apache.drill.exec.planner.physical.visitor.BasePrelVisitor<Prel,Void,RuntimeException>
org.apache.drill.exec.planner.physical.visitor.AdjustOperatorsSchemaVisitor
All Implemented Interfaces:
PrelVisitor<Prel,Void,RuntimeException>

public class AdjustOperatorsSchemaVisitor extends BasePrelVisitor<Prel,Void,RuntimeException>
AdjustOperatorsSchemaVisitor visits corresponding operators' which depending upon their functionality adjusts their output row types. The adjusting mechanism is unique to each operator. In case of joins this visitor adjusts the field names to make sure that upstream operator only sees that there are unique field names even though the children of the join has same field names. Whereas in case of lateral/unnest operators it changes the correlated field and also the unnest operator's output row type.