Skip to content

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.

new PlanBuilder(): PlanBuilder;

PlanBuilder

static toExpression(expr): Record<string, unknown>;

Defined in: plan/plan-builder.ts:492

Convert an Expression tree node into a Spark Connect Expression object.

Parameter Type
expr Expression

Record<string, unknown>


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.

Parameter Type
plan LogicalPlan

Record<string, unknown>