-
Notifications
You must be signed in to change notification settings - Fork 613
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: remove keyspace #6406
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6406 +/- ##
==========================================
- Coverage 74.28% 74.12% -0.17%
==========================================
Files 960 966 +6
Lines 156525 158029 +1504
==========================================
+ Hits 116277 117141 +864
- Misses 40248 40888 +640
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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! Thanks for the PR.
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.
Rest LGTM
src/storage/src/table/mod.rs
Outdated
iter: I, | ||
} | ||
|
||
impl<I: StateStoreIter<Item = (FullKey<Vec<u8>>, Bytes)>> StateStoreIter |
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.
Can we try implementing a map
method for StateStoreIter
by adding a trait named like StateStoreIterMapExt
?
* remove all functions in keyspace * remove keyspace * misc * revert version.rs * rename store to local_store in streaming table * replace ExtractTableKeyIterator with a more general interface 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?
After #6130, keys are no longer "globally unique" - keys of different operators are distinguished by different
table_id
s in the read/write option when calling state store interface. Thetable_id
prefix is no longer required, makingKeySpace
a redundant layer. So this PR removes it.ExtractTableKeyIter
is moved to table/mod.rs, and is constructed inStorageIterInner
Checklist
- [ ] I have added necessary unit tests and integration tests./risedev check
(or alias,./risedev c
)Documentation
If your pull request contains user-facing changes, please specify the types of the changes, and create a release note. Otherwise, please feel free to remove this section.
Types of user-facing changes
Please keep the types that apply to your changes, and remove those that do not apply.
Release note
Please create a release note for your changes. In the release note, focus on the impact on users, and mention the environment or conditions where the impact may occur.
Refer to a related PR or issue link (optional)