Skip to content

Fix parallel worker assignment for partial paths#1367

Merged
avamingli merged 1 commit into
apache:mainfrom
avamingli:fix_1366
Sep 24, 2025
Merged

Fix parallel worker assignment for partial paths#1367
avamingli merged 1 commit into
apache:mainfrom
avamingli:fix_1366

Conversation

@avamingli
Copy link
Copy Markdown
Contributor

fix #1366

Update parallel_workers assignment to handle cases where partial paths may have
parallel_workers = 0 after parallel-oblivious append. Move assignment before
assertion and use pathnode->parallel_workers in the check.

Authored-by: Zhang Mingli avamingli@gmail.com

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


Comment thread src/backend/optimizer/util/pathnode.c Outdated
fix apache#1366

Update parallel_workers assignment to handle cases where partial paths
may have
parallel_workers = 0 after parallel-oblivious append. Move assignment
before
assertion and use pathnode->parallel_workers in the check.

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

@zhangwenchao-123
Copy link
Copy Markdown
Contributor

LGTM

@avamingli avamingli merged commit 9d86458 into apache:main Sep 24, 2025
28 checks passed
@avamingli avamingli deleted the fix_1366 branch September 24, 2025 02:59
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.

[Bug] crash on parition_join case in parallel test

3 participants