-
Notifications
You must be signed in to change notification settings - Fork 525
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: enable consistent hash for materialize and table scan #3558
Conversation
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
@@ -95,13 +98,19 @@ impl ExecutorBuilder for ArrangeExecutorBuilder { | |||
.map(|key| *key as usize) | |||
.collect(); | |||
|
|||
// FIXME: Lookup is now implemented without cell-based table API and relies on all vnodes |
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.
This will be resolved by #3418. cc @BowenXiao1999
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Codecov Report
@@ Coverage Diff @@
## main #3558 +/- ##
==========================================
- Coverage 74.39% 74.36% -0.03%
==========================================
Files 771 771
Lines 108714 108713 -1
==========================================
- Hits 80875 80844 -31
- Misses 27839 27869 +30
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
@@ -184,7 +184,7 @@ mod tests { | |||
#[test] | |||
fn test_vec_decode_encode() { | |||
let mut result = vec![]; | |||
let value_meta = ValueMeta { vnode: 63492 }; | |||
let value_meta = ValueMeta { vnode: 233 }; |
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.
Do we still have vnode in value meta now?
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.
Will remove soon. Check #3316
* encode vnode in mview Signed-off-by: Bugen Zhao <i@bugenzhao.com> * use vnode in scan & batch query executor Signed-off-by: Bugen Zhao <i@bugenzhao.com> * support singleton materialize Signed-off-by: Bugen Zhao <i@bugenzhao.com> * ordered batch iterator Signed-off-by: Bugen Zhao <i@bugenzhao.com> * parallelized chain Signed-off-by: Bugen Zhao <i@bugenzhao.com> * disable time index & time window Signed-off-by: Bugen Zhao <i@bugenzhao.com> * introduce distribution struct Signed-off-by: Bugen Zhao <i@bugenzhao.com> * remove without distribution Signed-off-by: Bugen Zhao <i@bugenzhao.com> * disable delta join Signed-off-by: Bugen Zhao <i@bugenzhao.com> * recover delta join Signed-off-by: Bugen Zhao <i@bugenzhao.com> * update proto test Signed-off-by: Bugen Zhao <i@bugenzhao.com> * fix clippy Signed-off-by: Bugen Zhao <i@bugenzhao.com> * concurrent iter creation Signed-off-by: Bugen Zhao <i@bugenzhao.com> * use 256 vnodes Signed-off-by: Bugen Zhao <i@bugenzhao.com> * fix tests Signed-off-by: Bugen Zhao <i@bugenzhao.com> * fix tests Signed-off-by: Bugen Zhao <i@bugenzhao.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
This PR enables consistent hash for materialize executor, so that the batch query executor can really parallelize the scanning now. Besides, the
RowSeqScan
is now ready to support parallel scan as well (#3251).There leave several issues to resolve:
CREATE INDEX
are disabled due to bug: should use order key instead of primary key for cell based table desc ofINDEX
#3572Checklist
./risedev check
(or alias,./risedev c
)Refer to a related PR or issue link (optional)