Skip to content
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

table partition: add test for exchange partition #37083

Merged
merged 39 commits into from
Aug 22, 2022
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
5f5e312
add tiflash test
ymkzpx Aug 4, 2022
561a1f0
fix AutoID
ymkzpx Aug 5, 2022
fe4cbcd
Merge branch 'master' into exchange-partition-test
ymkzpx Aug 5, 2022
901ccfc
fix
ymkzpx Aug 5, 2022
33708d0
Merge branch 'exchange-partition-test' of github.com:ymkzpx/tidb into…
ymkzpx Aug 5, 2022
9368775
fix test
ymkzpx Aug 5, 2022
40f8607
Merge branch 'master' of github.com:pingcap/tidb into exchange-partit…
ymkzpx Aug 5, 2022
68f7744
fix
ymkzpx Aug 5, 2022
fc7610b
fix test
ymkzpx Aug 5, 2022
958ab86
Merge branch 'master' of github.com:pingcap/tidb into exchange-partit…
ymkzpx Aug 5, 2022
9c52285
fix
ymkzpx Aug 5, 2022
157b7bd
address comment
ymkzpx Aug 9, 2022
1188b38
Merge branch 'master' of github.com:pingcap/tidb into exchange-partit…
ymkzpx Aug 9, 2022
4115c4b
fix
ymkzpx Aug 9, 2022
8628dad
failpoint replace hook
ymkzpx Aug 11, 2022
4537e26
Merge branch 'master' of github.com:pingcap/tidb into exchange-partit…
ymkzpx Aug 11, 2022
567111b
adress comment
ymkzpx Aug 12, 2022
5a37c6e
Merge branch 'master' of github.com:pingcap/tidb into exchange-partit…
ymkzpx Aug 12, 2022
1e5f9f4
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 12, 2022
e635904
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 12, 2022
9eacb62
add test
ymkzpx Aug 13, 2022
52457b4
address conflict
ymkzpx Aug 13, 2022
6ad4fd2
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 18, 2022
6538393
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 19, 2022
074a16c
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 19, 2022
b73aaca
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 19, 2022
5231399
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 19, 2022
7573e2e
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 19, 2022
49cf0e0
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 19, 2022
fc60fb8
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 19, 2022
94b6965
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 19, 2022
9016343
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 19, 2022
ffc47b4
fix test
ymkzpx Aug 20, 2022
86ea099
Merge branch 'master' of github.com:pingcap/tidb into exchange-partit…
ymkzpx Aug 20, 2022
adf8a8f
Merge branch 'exchange-partition-test' of github.com:ymkzpx/tidb into…
ymkzpx Aug 20, 2022
b03985c
Merge branch 'master' into exchange-partition-test
ymkzpx Aug 22, 2022
36fdf11
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 22, 2022
20b8216
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 22, 2022
985f988
Merge branch 'master' into exchange-partition-test
ti-chi-bot Aug 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ddl/db_partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2119,6 +2119,10 @@ func TestAlterTableExchangePartition(t *testing.T) {
tk.MustExec("alter table e18 exchange partition p0 with table e17")
tk.MustQuery("select * /*+ read_from_storage(tiflash[e18]) */ from e18").Check(testkit.Rows("1"))
tk.MustQuery("select * /*+ read_from_storage(tiflash[e17]) */ from e17").Check(testkit.Rows("2"))

tk.MustExec("create table e19 (a int) partition by hash(a) partitions 1")
tk.MustExec("create temporary table e20 (a int)")
tk.MustGetErrCode("alter table e19 exchange partition p0 with table e20", errno.ErrPartitionExchangeTempTable)
}

func TestExchangePartitionTableCompatiable(t *testing.T) {
Expand Down