Skip to content

Add NetworkBoundaryBuilder argument to inject_network_boundaries#463

Open
gabotechs wants to merge 1 commit into
gabrielmusat/report-tasks-in-benchmarksfrom
gabrielmusat/network-boundary-builder
Open

Add NetworkBoundaryBuilder argument to inject_network_boundaries#463
gabotechs wants to merge 1 commit into
gabrielmusat/report-tasks-in-benchmarksfrom
gabrielmusat/network-boundary-builder

Conversation

@gabotechs
Copy link
Copy Markdown
Collaborator

@gabotechs gabotechs commented May 23, 2026

This is one PR from the following stack of PRs:

This PR introduces a NetworkBoundaryBuilder argument to the network boundary injection logic, allowing more flexible and configurable strategies for determining which exchanges require network communication. This enables better optimization of data movement across distributed tasks.

@gabotechs gabotechs changed the base branch from main to gabrielmusat/report-tasks-in-benchmarks May 23, 2026 12:49
@gabotechs gabotechs marked this pull request as ready for review May 23, 2026 12:55
@gabotechs gabotechs mentioned this pull request May 24, 2026
@gabotechs gabotechs force-pushed the gabrielmusat/report-tasks-in-benchmarks branch from f9f778f to 5711027 Compare May 26, 2026 13:21
@gabotechs gabotechs force-pushed the gabrielmusat/network-boundary-builder branch from 382dc95 to 110bbce Compare May 26, 2026 13:22
@gabotechs gabotechs force-pushed the gabrielmusat/report-tasks-in-benchmarks branch from 5711027 to 3d31017 Compare May 26, 2026 13:53
@gabotechs gabotechs force-pushed the gabrielmusat/network-boundary-builder branch from 110bbce to 567c155 Compare May 26, 2026 13:53
gabotechs added a commit that referenced this pull request May 26, 2026
… be the same (#427)

This is one PR from the following stack of PRs:
- #427
<- you are here
- #469
- #461
- #462
- #463
- #464
- #432

This is a preparatory step towards:
-
#377

This is an optimization that allows workers to communicate in-memory
avoiding network calls and serialization in case it needs to communicate
to itself.

This optimization shows good improvements if using a small number of
workers, and fades away as more workers are used.

Even if this shows improvements today, it will become very meaningful in
adaptative query execution: there will be times when two consecutive
stages are assigned 1 task each, and as that was done dynamically, we
cannot eagerly do the optimization that collapses those two stages into
one, so instead, we assigned both stages to the same worker, and the
optimization in this PR kicks in, executing the plan fully locally.
@gabotechs gabotechs force-pushed the gabrielmusat/report-tasks-in-benchmarks branch from 3d31017 to 68c26dc Compare May 26, 2026 18:05
@gabotechs gabotechs force-pushed the gabrielmusat/network-boundary-builder branch from 567c155 to d1c7428 Compare May 26, 2026 18:05
gabotechs added a commit that referenced this pull request May 27, 2026
This is one PR from the following stack of PRs:
- #427
- #469
<- you are here
- #461
- #462
- #463
- #464
- #432

This PR factors out common recursion patterns used in the distributed
planner into reusable helpers, reducing complexity in critical parts of
the codebase. By centralizing recursion logic, we improve code
maintainability and reduce the risk of subtle bugs in recursive tree
traversals.
@gabotechs gabotechs force-pushed the gabrielmusat/report-tasks-in-benchmarks branch from 68c26dc to 14e2ff4 Compare May 27, 2026 15:26
@gabotechs gabotechs force-pushed the gabrielmusat/network-boundary-builder branch from d1c7428 to 4093882 Compare May 27, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant