PlanBuilder
Defined in: plan/plan-builder.ts:31
Converts a LogicalPlan tree into a plain object that mirrors the Spark Connect proto Relation message. This is an intermediate representation - the runtime adapter further encodes it to binary protobuf for the wire.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PlanBuilder(): PlanBuilder;Returns
Section titled “Returns”PlanBuilder
Methods
Section titled “Methods”toExpression()
Section titled “toExpression()”static toExpression(expr): Record<string, unknown>;Defined in: plan/plan-builder.ts:483
Convert an Expression tree node into a Spark Connect Expression object.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
expr | Expression |
Returns
Section titled “Returns”Record<string, unknown>
toRelation()
Section titled “toRelation()”static toRelation(plan): Record<string, unknown>;Defined in: plan/plan-builder.ts:36
Recursively convert a LogicalPlan into a Spark Connect Relation
compatible plain object.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
plan | LogicalPlan |
Returns
Section titled “Returns”Record<string, unknown>