-
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
support PartitionTableScan
in TiFlash
#3876
Conversation
[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. |
f8e52b6
to
568b6a0
Compare
ab82cce
to
d621cd6
Compare
d621cd6
to
195894e
Compare
/run-all-tests |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
af699d5
to
0c80e6b
Compare
0c80e6b
to
dd49eac
Compare
dd49eac
to
a53ec53
Compare
6d87e1d
to
b78aff1
Compare
retry_regions.emplace_back(RegionInfo(r.region_id(), r.region_epoch().version(), r.region_epoch().conf_ver(), CoprocessorHandler::GenCopKeyRange(r.ranges()), nullptr)); | ||
} | ||
} | ||
TablesRegionsInfo tables_regions_info = TablesRegionsInfo::create(cop_request->regions(), cop_request->table_regions(), cop_context.db_context.getTMTContext()); |
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.
TablesRegionsInfo tables_regions_info = TablesRegionsInfo::create(cop_request->regions(), cop_request->table_regions(), cop_context.db_context.getTMTContext()); | |
auto tables_regions_info = TablesRegionsInfo::create(cop_request->regions(), cop_request->table_regions(), cop_context.db_context.getTMTContext()); |
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.
Done
bool has_enforce_encode_type = dag_req.has_force_encode_type() && dag_req.force_encode_type(); | ||
|
||
assert(!remote_requests.empty()); | ||
DAGSchema & schema = remote_requests[0].schema; |
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 about check all schemas the same under debug mode?
} | ||
for (auto & p : ret) | ||
{ | ||
p.second.mvcc_query_info->concurrent = p.second.mvcc_query_info->regions_query_info.size() > 1 ? 1.0 : 0.0; |
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.
add a todo?
const tipb::Executor * table_scan; | ||
bool is_partition_table_scan; | ||
const google::protobuf::RepeatedPtrField<tipb::ColumnInfo> & columns; | ||
std::vector<Int64> physical_table_ids; |
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.
got it. btw I found tidb_table_ids and tiflash_table_ids are more readable to me.
const tipb::Executor * table_scan; | ||
bool is_partition_table_scan; | ||
const google::protobuf::RepeatedPtrField<tipb::ColumnInfo> & columns; | ||
std::vector<Int64> physical_table_ids; |
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.
what will happen if tidb mistakenly sent duplicated ids to tiflash? use set and check it?
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
01cce83
to
f7065bf
Compare
/cancel hold |
/merge |
@windtalker: 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: f7065bf
|
/run-all-tests |
/rebuild |
1 similar comment
/rebuild |
/run-integration-tests |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
close pingcap#3873 Signed-off-by: ywqzzy <[email protected]>
Signed-off-by: ywqzzy <[email protected]> update. Signed-off-by: ywqzzy <[email protected]> update. Signed-off-by: ywqzzy <[email protected]> Split write and ingest throughput (pingcap#4245) close pingcap#4243 Signed-off-by: ywqzzy <[email protected]> fix the problem that expired data was not recycled timely due to slow gc speed (pingcap#4224) close pingcap#4146 Signed-off-by: ywqzzy <[email protected]> PageStorage: Fix some bugs (pingcap#4212) ref pingcap#3594 Signed-off-by: ywqzzy <[email protected]> Make test of CreateTables using affected opts (pingcap#4239) close pingcap#4235 Signed-off-by: ywqzzy <[email protected]> BlobStore: remove the old_ids, not need recycle the blob id. (pingcap#4247) ref pingcap#3594 Signed-off-by: ywqzzy <[email protected]> support `PartitionTableScan` in TiFlash (pingcap#3876) close pingcap#3873 Signed-off-by: ywqzzy <[email protected]> update. Signed-off-by: ywqzzy <[email protected]> update. Signed-off-by: ywqzzy <[email protected]> support last_day and dayofmonth pushdown to tiflash (pingcap#4183) close pingcap#4149 Signed-off-by: ywqzzy <[email protected]>
What problem does this PR solve?
Issue Number: close #3873
Problem Summary:
As the issue described.
What is changed and how it works?
This is the TiFlash part of #3873, the main changes include
TiDBTableScan
to hide the different ofTableScan
andPartitionTableScan
PartitionTableScan
inDAGStorageInterpreter
PartitionTableScan
indbgFunctionCoprocessor
Check List
Tests
Side effects
Documentation
Release note