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: wrong binding for insert select #15594

Closed
chenzl25 opened this issue Mar 11, 2024 · 0 comments · Fixed by #15597
Closed

Bug: wrong binding for insert select #15594

chenzl25 opened this issue Mar 11, 2024 · 0 comments · Fixed by #15597
Labels
type/bug Something isn't working
Milestone

Comments

@chenzl25
Copy link
Contributor

Describe the bug

create table t (a int);
create table t2 (b int);
insert into t select 1 as a from t2 group by a; -- Panic
explain insert into t select 1 as a from t2 group by a;
                                            QUERY PLAN
---------------------------------------------------------------------------------------------------
 BatchExchange { order: [], dist: Single }
 └─BatchInsert { table: t }
   └─BatchExchange { order: [], dist: Single }
     └─BatchProject { exprs: [1:Int32] }
       └─BatchHashAgg { group_key: [$expr1], aggs: [] }
         └─BatchExchange { order: [], dist: HashShard($expr1) }
           └─BatchProject { exprs: [CorrelatedInputRef { index: 0, correlated_id: 0 } as $expr1] }
             └─BatchScan { table: t2, columns: [] }

Error message/log

No response

To Reproduce

No response

Expected behavior

No response

How did you deploy RisingWave?

No response

The version of RisingWave

No response

Additional context

No response

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

Successfully merging a pull request may close this issue.

1 participant