-
Notifications
You must be signed in to change notification settings - Fork 598
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
feat: use order key as mv's dist key #20176
Conversation
└─StreamExchange { dist: HashShard(t1.v1) } | ||
└─StreamTopN [append_only] { order: [t1.v1 ASC], limit: 3, offset: 3 } | ||
└─StreamExchange { dist: Single } | ||
└─StreamTableScan { table: t1, columns: [t1.v1, t1._row_id], stream_scan_type: ArrangementBackfill, stream_key: [t1._row_id], pk: [_row_id], dist: UpstreamHashShard(t1._row_id) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not know if we should make some special behavior for the order by
clause with limit
... Maybe it is ok because there are not many people write a ToN streaming job and has expectation on its performance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks~
…gwavelabs/risingwave into sts/distribution_key_with_order_by
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you show that in which cases we will gain performance benefits from this change?
I think the main discussion is in the issue and hard to give a overall summary. |
Is there at least any simple example? 🤣 |
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
close #19321
Checklist
Documentation
Release note