Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] There is a problem with the distribution strategy of the orca unionall operator. #279

Open
2 tasks done
Light-City opened this issue Nov 2, 2023 · 2 comments
Open
2 tasks done
Labels
type: Bug Something isn't working

Comments

@Light-City
Copy link
Contributor

Cloudberry Database version

master

What happened

The orca optimizer currently returns the ANY policy for the first child of a unionall-like node, which will result in Gather Motion for the downstream chi
ldren and a 1:n Redistribution for the upstream.

for example:
    ->  Redistribute Motion 1:3  (slice2)
       ->  Append  (cost=0.00..863.91 rows=18001 width=12)
          ->  Finalize Vec Aggregate
            ->  Gather Motion 3:1  (slice3; segments: 3)
              ...
       ->  Gather Motion 3:1  (slice4; segments: 3)
          ->  HashAggregate

What you think should happen instead

remove child gather motion and upstream redis motion, just add 1:n to first child.

How to reproduce

tpcds 167 query

Operating System

centos7

Anything else

No response

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

Copy link

github-actions bot commented Nov 2, 2023

Hey, @Light-City welcome!🎊 Thanks for taking the time to point this out.🙌

@Light-City
Copy link
Contributor Author

Light-City commented Nov 2, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant