forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is an automated cherry-pick of pingcap#58433
Signed-off-by: ti-chi-bot <[email protected]>
- Loading branch information
1 parent
1bdef59
commit 7adf279
Showing
7 changed files
with
215 additions
and
5 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
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,11 @@ | ||
# config of tidb | ||
|
||
max-index-length = 12288 | ||
|
||
[security] | ||
ssl-ca = "/tmp/backup_restore_test/certs/ca.pem" | ||
ssl-cert = "/tmp/backup_restore_test/certs/tidb.pem" | ||
ssl-key = "/tmp/backup_restore_test/certs/tidb.key" | ||
cluster-ssl-ca = "/tmp/backup_restore_test/certs/ca.pem" | ||
cluster-ssl-cert = "/tmp/backup_restore_test/certs/tidb.pem" | ||
cluster-ssl-key = "/tmp/backup_restore_test/certs/tidb.key" |
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,51 @@ | ||
-- basic test: [INDEX/UNIQUE], [COMMENT], [INDEXTYPE], [INVISIBLE], [EXPRESSION] | ||
ALTER TABLE test.pairs ADD INDEX i1(y, z) USING HASH COMMENT "edelw;fe?fewfe\nefwe" INVISIBLE; | ||
ALTER TABLE test.pairs ADD UNIQUE KEY u1(x, y) USING RTREE VISIBLE; | ||
ALTER TABLE test.pairs ADD INDEX i2(y, (z + 1)) USING BTREE COMMENT "123"; | ||
ALTER TABLE test.pairs ADD UNIQUE KEY u2(x, (y+1)) USING HASH COMMENT "243"; | ||
|
||
-- test: [COLUMN LENGTH], [EXPRESSION], [PRIMARY] | ||
ALTER TABLE test.pairs2 ADD INDEX i1(y, z(10)); | ||
ALTER TABLE test.pairs2 ADD UNIQUE KEY u1(y, z(10), (y * 2)) USING RTREE VISIBLE; | ||
ALTER TABLE test.pairs2 ADD PRIMARY KEY (x) USING HASH; | ||
|
||
-- test: [MULTIVALUED] | ||
ALTER TABLE test.pairs3 ADD INDEX zips2((CAST(custinfo->'$.zipcode' AS UNSIGNED ARRAY))); | ||
|
||
-- test: DROP operation | ||
ALTER TABLE test.pairs4 ADD INDEX i1(y, z) USING HASH COMMENT "edelw;fe?fewfe\nefwe" INVISIBLE; | ||
ALTER TABLE test.pairs4 ADD UNIQUE KEY u1(x, y) USING RTREE VISIBLE; | ||
ALTER TABLE test.pairs4 ADD INDEX i2(y, (z + 1)) USING BTREE COMMENT "123"; | ||
ALTER TABLE test.pairs4 ADD UNIQUE KEY u2(x, (y+1)) USING HASH COMMENT "243"; | ||
ALTER TABLE test.pairs4 DROP INDEX i1; | ||
ALTER TABLE test.pairs4 DROP INDEX u1; | ||
ALTER TABLE test.pairs4 DROP INDEX i2; | ||
ALTER TABLE test.pairs4 DROP INDEX u2; | ||
|
||
-- test: DROP operation | ||
ALTER TABLE test.pairs5 ADD INDEX i1(y, z(10)); | ||
ALTER TABLE test.pairs5 ADD UNIQUE KEY u1(y, z(10), (y * 2)) USING RTREE VISIBLE; | ||
ALTER TABLE test.pairs5 ADD PRIMARY KEY (x) USING HASH; | ||
ALTER TABLE test.pairs5 DROP INDEX i1; | ||
ALTER TABLE test.pairs5 DROP INDEX u1; | ||
ALTER TABLE test.pairs5 DROP INDEX `PRIMARY`; | ||
|
||
-- test: [strange string in EXPRESSION], [rename operation] | ||
ALTER TABLE test.pairs6 ADD INDEX zips2((CAST(`cust``;info`->'$.zipcode' AS UNSIGNED ARRAY))); | ||
ALTER TABLE test.pairs6 ADD INDEX i1(`nam``;e`, (`nam``;e` * 2)); | ||
RENAME TABLE test.pairs6 TO test.pairs7; | ||
ALTER TABLE test.pairs7 RENAME INDEX i1 to i2; | ||
|
||
-- future test: [MODIFY COLUMN operation] | ||
ALTER TABLE test.pairs8 ADD INDEX i1(y); | ||
ALTER TABLE test.pairs8 MODIFY y varchar(20); | ||
|
||
-- future test: [CHANGE COLUMN operation] | ||
ALTER TABLE test.pairs9 ADD INDEX i1(y); | ||
ALTER TABLE test.pairs9 CHANGE y y2 varchar(20); | ||
|
||
-- test partition | ||
ALTER TABLE test.pairs10 ADD INDEX i1(y); | ||
|
||
|
||
CREATE INDEX huge ON test.huge_idx(blob1, blob2); |
Large diffs are not rendered by default.
Oops, something went wrong.
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