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:483

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

ParameterType
exprExpression

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.

ParameterType
planLogicalPlan

Record<string, unknown>