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

StreamHashJoin distribution enforcement panic #8537

Closed
chenzl25 opened this issue Mar 14, 2023 · 0 comments
Closed

StreamHashJoin distribution enforcement panic #8537

chenzl25 opened this issue Mar 14, 2023 · 0 comments
Labels
type/bug Something isn't working
Milestone

Comments

@chenzl25
Copy link
Contributor

chenzl25 commented Mar 14, 2023

Describe the bug

A case was found in the bushy tree join ordering #8316. Thank @KveinAxel found the case which is too complex to reproduce, so I rewrite it into a simple one.

CREATE TABLE part (
        p_partkey INTEGER,
        p_name VARCHAR,
        p_mfgr VARCHAR,
        p_brand VARCHAR,
        p_type VARCHAR,
        p_size INTEGER,
        p_container VARCHAR,
        p_retailprice NUMERIC,
        p_comment VARCHAR,
        PRIMARY KEY (p_partkey)
);

CREATE TABLE partsupp (
        ps_partkey INTEGER,
        ps_suppkey INTEGER,
        ps_availqty INTEGER,
        ps_supplycost NUMERIC,
        ps_comment VARCHAR,
        PRIMARY KEY (ps_partkey, ps_suppkey)
);

explain create materialized view v as 
select partsupp.* from part join partsupp on part.p_comment = partsupp.ps_comment 
join part p1 on p1.p_partkey = part.p_partkey and p1.p_partkey = partsupp.ps_partkey; -- panic!

To Reproduce

No response

Expected behavior

No response

Additional context

No response

@chenzl25 chenzl25 added the type/bug Something isn't working label Mar 14, 2023
@github-actions github-actions bot added this to the release-0.1.18 milestone Mar 14, 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