Skip to content

Fix NULL locus of Shared Scan.#1377

Merged
avamingli merged 1 commit into
apache:mainfrom
avamingli:fix_shared_locus
Oct 9, 2025
Merged

Fix NULL locus of Shared Scan.#1377
avamingli merged 1 commit into
apache:mainfrom
avamingli:fix_shared_locus

Conversation

@avamingli
Copy link
Copy Markdown
Contributor

The shared scan needs its locus type and parallel number to be explicitly set when gp_cte_sharing is used, even without parallelism.

Failing to do so resulted in an incorrect NULL locus appearing in the query plan.

Fix #1376

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/test/regress/sql/cbdb_parallel.sql
The shared scan needs its locus type and parallel number to be
explicitly set when `gp_cte_sharing` is used, even without
parallelism. Failing to do so resulted in an incorrect NULL locus
appearing in the query plan.

Fix apache#1376

Authored-by: Zhang Mingli avamingli@gmail.com
@avamingli avamingli merged commit 0cd5c60 into apache:main Oct 9, 2025
28 checks passed
@avamingli avamingli deleted the fix_shared_locus branch October 9, 2025 08:25
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] Locus: NULL of Share Input Scan

3 participants