Skip to content

Rename 'Parallel Broadcast Motion' to 'Broadcast Workers Motion'#265

Merged
my-ship-it merged 1 commit intoapache:mainfrom
avamingli:rename_parallel_broadcast
Nov 7, 2023
Merged

Rename 'Parallel Broadcast Motion' to 'Broadcast Workers Motion'#265
my-ship-it merged 1 commit intoapache:mainfrom
avamingli:rename_parallel_broadcast

Conversation

@avamingli
Copy link
Copy Markdown
Contributor

A Parallel node in plan means it's a parallel aware node.
Parallel Seq Scan: workers work together to scan a table,
Parallel Hash Join: workers work together to make a join.
And in the internal implementation, a Parallel node usually has a technique(shared memory) to sync between workers.

It's confused for Parallel Broadcast Motion, the workers of this node doesn't use such a technique to sync.
The node is not parallel aware, and the real meaning is to send tuples across target slice's workers for each segment.

Let's rename it to Broadcast Workers Motion representing for broadcasting tuples across workers of segments.

Authored-by: Zhang Mingli avamingli@gmail.com

closes: #ISSUE_Number


Change logs

Describe your change clearly, including what problem is being solved or what feature is being added.

If it has some breaking backward or forward compatibility, please clary.

Why are the changes needed?

Describe why the changes are necessary.

Does this PR introduce any user-facing change?

If yes, please clarify the previous behavior and the change this PR proposes.

How was this patch tested?

Please detail how the changes were tested, including manual tests and any relevant unit or integration tests.

Contributor's Checklist

Here are some reminders and checklists before/when submitting your pull request, please check them:

  • Make sure your Pull Request has a clear title and commit message. You can take git-commit template as a reference.
  • Sign the Contributor License Agreement as prompted for your first-time contribution(One-time setup).
  • Learn the coding contribution guide, including our code conventions, workflow and more.
  • List your communication in the GitHub Issues or Discussions (if has or needed).
  • Document changes.
  • Add tests for the change
  • Pass make installcheck
  • Pass make -C src/test installcheck-cbdb-parallel
  • Feel free to @cloudberrydb/dev team for review and approval when your PR is ready🥳

A Parallel node in plan means it's a parallel aware node.
Parallel Seq Scan: workers work together to scan a table,
Parallel Hash Join: workers work together to make a join.
And in the internal implementation, a Parallel node usually
has a technique(shared memory) to sync between workers.

It's confused for Parallel Broadcast Motion, the workers
of this node doesn't use such a technique to sync.
The node is not parallel aware, and the real meaning is to
send tuples across target slice's workers for each segment.

Let's rename it to Broadcast Workers Motion representing for
broadcasting tuples across workers of segments.

Authored-by: Zhang Mingli avamingli@gmail.com
@avamingli avamingli self-assigned this Oct 27, 2023
Copy link
Copy Markdown
Contributor

@my-ship-it my-ship-it left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@my-ship-it my-ship-it merged commit ff6f72a into apache:main Nov 7, 2023
baotingfang pushed a commit that referenced this pull request Dec 1, 2023
A Parallel node in plan means it's a parallel aware node.
Parallel Seq Scan: workers work together to scan a table,
Parallel Hash Join: workers work together to make a join.
And in the internal implementation, a Parallel node usually
has a technique(shared memory) to sync between workers.

It's confused for Parallel Broadcast Motion, the workers
of this node doesn't use such a technique to sync.
The node is not parallel aware, and the real meaning is to
send tuples across target slice's workers for each segment.

Let's rename it to Broadcast Workers Motion representing for
broadcasting tuples across workers of segments.

Authored-by: Zhang Mingli avamingli@gmail.com
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.

2 participants