-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FLASH-554 cop check range should be based on region range (#270)
* only return execute summaies if requested * cop check range should be based on region range * address comments * add tests * minor improve
- Loading branch information
1 parent
80f6f35
commit f255362
Showing
3 changed files
with
94 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Preparation. | ||
=> DBGInvoke __enable_schema_sync_service('true') | ||
|
||
=> DBGInvoke __drop_tidb_table(default, test_uint) | ||
=> drop table if exists default.test_uint | ||
|
||
=> DBGInvoke __set_flush_threshold(1000000, 1000000) | ||
|
||
# Data. | ||
=> DBGInvoke __mock_tidb_table(default, test_uint, 'col_1 String, col_2 UInt64','col_2') | ||
=> DBGInvoke __refresh_schemas() | ||
=> DBGInvoke __put_region(4, 0, 100, default, test_uint) | ||
=> DBGInvoke __raft_insert_row(default, test_uint, 4, 88, 'test1') | ||
=> DBGInvoke __raft_insert_row(default, test_uint, 4, 99, 'test2') | ||
|
||
=> DBGInvoke dag('select * from default.test_uint where col_2 >= 66') | ||
┌─col_1─┬─col_2─┐ | ||
│ test1 │ 88 │ | ||
│ test2 │ 99 │ | ||
└───────┴───────┘ | ||
|
||
# Clean up. | ||
=> DBGInvoke __drop_tidb_table(default, test_uint) | ||
=> drop table if exists default.test_uint |