-
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
Enrich the infomation about FullTableScan operator of TiFlash in explain analyze
#6314
Enrich the infomation about FullTableScan operator of TiFlash in explain analyze
#6314
Conversation
…yunyan_add_statistic
…yunyan_add_statistic
…yunyan_add_statistic
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
explain analyze
explain analyze
explain analyze
explain analyze
/cc @SeaRise |
/run-all-tests |
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 rest LGTM
dbms/src/Flash/Coprocessor/tests/gtest_ti_remote_block_inputstream.cpp
Outdated
Show resolved
Hide resolved
/run-all-tests |
/run-all-tests |
/run-all-tests |
/merge |
@hongyunyan: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. 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. |
This pull request has been accepted and is ready to merge. Commit hash: 6d2ee5a
|
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.
Sorry for the late reply. I think we can avoid the new StorageDeltaMerge::read
interface
const auto & scan_context = dag_context.scan_context_map.at(table_scan.getTableScanExecutorID()); | ||
|
||
// We want to collect performance metrics in storage level, thus we need read with scan_context here. | ||
// while IStorage::read() can't support it, and only StorageDeltaMerge support to read with scan_context to collect the information. | ||
// Thus, storage must cast to StorageDeltaMergePtr here to call the corresponding read() function. | ||
StorageDeltaMergePtr delta_merge_storage = std::dynamic_pointer_cast<StorageDeltaMerge>(storage); | ||
RUNTIME_CHECK_MSG(delta_merge_storage != nullptr, "delta_merge_storage which cast from storage is null"); | ||
pipeline.streams = delta_merge_storage->read(required_columns, query_info, context, from_stage, max_block_size, max_streams, scan_context); |
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 we can put scan_context
into qeury_info.mvcc_query_info
to avoid creating another StorageDeltaMerge::read
interface
What problem does this PR solve?
Issue Number: close #5926
Problem Summary:
Enrich the information about FullTableScan operator of TiFlash in
explain analyze
.New information includes:
What is changed and how it works?
Related PRs:
pingcap/tipb#278 merged first)
pingcap/tidb#39216
Examples:
Check List
Tests
create table and insert 50w data, and then run the sql to check the metrics.
Side effects
Documentation
Release note