Skip to content

physicalplan: avoid serialization of expressions on the gateway in distributed flows #49810

@yuzefovich

Description

@yuzefovich

Currently we do expression serialization on all nodes, including the gateway, if the flow is distributed: in MakeExpression we call ctx.IsLocal() to decide whether we should serialize the expression, and that call returns true only when PlanningCtx.isLocal is true which is the case only when the flow is not distributed. I think we could be smarter and avoid the serialization on the gateway node, but it doesn't seem trivial.

Metadata

Metadata

Assignees

Labels

A-sql-executionRelating to SQL execution.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions