-
Notifications
You must be signed in to change notification settings - Fork 409
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
Storages: support building vector index for ColumnFileTiny (Part 1) #9534
Storages: support building vector index for ColumnFileTiny (Part 1) #9534
Conversation
Signed-off-by: Lloyd-Pottiger <[email protected]>
Signed-off-by: Lloyd-Pottiger <[email protected]>
7f095b7
to
5136336
Compare
auto new_index_infos = std::make_shared<IndexInfos>(); | ||
for (const auto & index : *index_infos) | ||
{ | ||
auto new_index_page_id = put_remote_page(index.index_page_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.
How to ensure that the page must exist?
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.
The workflow is
- write vector index (new page in log)
- delta update meta (new page in meta)
- page storage dump incremental checkpoint
So if new meta page was uploaded, the new log page must be uploaded.
Signed-off-by: Lloyd-Pottiger <[email protected]>
const CachePtr & cache_ = nullptr); | ||
|
||
Type getType() const override { return Type::TINY_FILE; } | ||
|
||
size_t getRows() const override { return rows; } | ||
size_t getBytes() const override { return bytes; } | ||
|
||
IndexInfosPtr getIndexInfos() const { return index_infos; } | ||
bool hasIndex(Int64 index_id) const |
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.
hasVectorIndex
?
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.
hasIndex
is better since we will support other types of index later.
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: breezewish, JaySon-Huang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
@Lloyd-Pottiger: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests
If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/test all |
What problem does this PR solve?
Issue Number: ref #9032
Problem Summary:
What is changed and how it works?
This PR is part of https://github.com/tidbcloud/tiflash-cse/pull/293, which mainly adds index info in ColumnFileTiny meta.
Check List
Tests
Side effects
Documentation
Release note