-
Notifications
You must be signed in to change notification settings - Fork 526
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
refactor(state_table): construct state_table from table_id+store instead of key_space #3593
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3593 +/- ##
==========================================
- Coverage 74.30% 74.29% -0.01%
==========================================
Files 773 773
Lines 109424 109551 +127
==========================================
+ Hits 81304 81394 +90
- Misses 28120 28157 +37
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 |
ctx.internal_table_id_set.insert(node.table_id_h); | ||
} | ||
|
||
NodeBody::AppendOnlyTopN(node) => { |
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.
For append_only top_n, it use two internal state table_id_l
and table_id_h
, I'm not sure inserting two or three table_id
for append_only
top_n
.
cc @st1page
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 think there should be two table id. but it is ok now that we waste one(not affect correctness). and later when we infer the table catalog in fe we can fix it.
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.
generally LGTM
…ead of key_space (#3593) * stage 1 * refactor state table new * refactor cell-based table new * fix * resolve conflict
…ead of key_space (risingwavelabs#3593) * stage 1 * refactor state table new * refactor cell-based table new * fix * resolve conflict
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
As title, change the
StateTable new()
andCellBasedTable new()
with table_id +store, instead of passing the wholekeyspace
. Top_n has three internal state, so change the frontend to assign three table_id to top_n executor.Checklist
./risedev check
(or alias,./risedev c
)Refer to a related PR or issue link (optional)
close #3498