Generate Unary Logical Operator for Lateral Views
Generate is a unary logical operator that is created to represent the following (after a logical plan is analyzed):
-
Generator or
GeneratorOuterexpressions (by ExtractGenerator logical evaluation rule) -
SQL’s LATERAL VIEW clause (in
SELECTorFROMclauses)
resolved flag is…FIXME
|
Note
|
resolved is part of LogicalPlan Contract to…FIXME.
|
producedAttributes…FIXME
The output schema of a Generate is…FIXME
|
Note
|
Generate logical operator is resolved to GenerateExec unary physical operator in BasicOperators execution planning strategy.
|
|
Tip
|
Use
|
Creating Generate Instance
Generate takes the following when created:
-
Generator expression
-
Output attributes
-
Child logical plan
Generate initializes the internal registries and counters.
spark技术分享