Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
dump: always split TiDB v4.* tables through tidb rowid to save TiDB's…
Browse files Browse the repository at this point in the history
… memory (#273) (#280)
  • Loading branch information
ti-chi-bot authored May 25, 2021
1 parent 4cb1157 commit 9509923
Show file tree
Hide file tree
Showing 7 changed files with 839 additions and 119 deletions.
24 changes: 12 additions & 12 deletions tests/primary_key/data/pk_case_3.sql
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# test random order and no primary key
create table `pk_case_3` (a int, b int);
create table `pk_case_3` (a int, b int, g geometry);
insert into `pk_case_3` values
(6, 4),
(4, 6),
(8, 2),
(3, 7),
(1, 9),
(2, 8),
(5, 5),
(10, 0),
(0, 10),
(9, 1),
(7, 3);
(6, 4, ST_GeomFromText('POINT(1 1)')),
(4, 6, ST_GeomFromText('LINESTRING(2 1, 6 6)')),
(8, 2, NULL),
(3, 7, NULL),
(1, 9, NULL),
(2, 8, NULL),
(5, 5, NULL),
(10, 0, NULL),
(0, 10, NULL),
(9, 1, NULL),
(7, 3, NULL);
22 changes: 11 additions & 11 deletions tests/primary_key/result/pk_case_3.sql
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*!40101 SET NAMES binary*/;
INSERT INTO `pk_case_3` VALUES
(6,4),
(4,6),
(8,2),
(3,7),
(1,9),
(2,8),
(5,5),
(10,0),
(0,10),
(9,1),
(7,3);
(6,4,x'000000000101000000000000000000f03f000000000000f03f'),
(4,6,x'000000000102000000020000000000000000000040000000000000f03f00000000000018400000000000001840'),
(8,2,NULL),
(3,7,NULL),
(1,9,NULL),
(2,8,NULL),
(5,5,NULL),
(10,0,NULL),
(0,10,NULL),
(9,1,NULL),
(7,3,NULL);
1 change: 1 addition & 0 deletions v4/export/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ var (

// ServerInfo is the combination of ServerType and ServerInfo
type ServerInfo struct {
HasTiKV bool
ServerType ServerType
ServerVersion *semver.Version
}
Expand Down
Loading

0 comments on commit 9509923

Please sign in to comment.