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

stream_key not equal to downstream primary key even though they should be the same #17524

Closed
lmatz opened this issue Jul 1, 2024 · 0 comments
Labels
type/bug Something isn't working

Comments

@lmatz
Copy link
Contributor

lmatz commented Jul 1, 2024

Describe the bug

dev=> set streaming_parallelism = 1;
SET_VARIABLE
dev=> CREATE TABLE IF NOT EXISTS agg (user_id VARCHAR PRIMARY KEY) ON CONFLICT DO UPDATE IF NOT NULL;   
CREATE_TABLE
dev=> create table t(user_id varchar);                                                                                
CREATE_TABLE
dev=> create sink s into agg as select user_id from t group by user_id with ( type = 'append-only',  force_append_only = 'true',);
CREATE_SINK
dev=> explain create sink s into agg_user_insights as select user_id from t group by user_id with ( type = 'append-only',  force_append_only = 'true',);
                             QUERY PLAN                              
---------------------------------------------------------------------
 StreamProject { exprs: [t.user_id] }
 └─StreamSink { type: append-only, columns: [user_id] }
   └─StreamProject { exprs: [t.user_id] }
     └─StreamHashAgg { group_key: [t.user_id], aggs: [count] }
       └─StreamExchange { dist: HashShard(t.user_id) }
         └─StreamTableScan { table: t, columns: [user_id, _row_id] }
(6 rows)

I guess "StreamProject" is the issue here?

SCR-20240701-v9z
SCR-20240701-va3

which leads to unnecessary sink buffering.

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

@lmatz lmatz added the type/bug Something isn't working label Jul 1, 2024
@github-actions github-actions bot added this to the release-1.10 milestone Jul 1, 2024
@fuyufjh fuyufjh modified the milestones: release-1.10, release-1.11 Jul 10, 2024
@lmatz lmatz removed this from the release-2.0 milestone Aug 19, 2024
@lmatz lmatz closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 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

No branches or pull requests

2 participants