Skip to content

Commit

Permalink
ddl, parser: implement the normal flow of distributed processing in D…
Browse files Browse the repository at this point in the history
…DL reorg phase for adding index (#40542)

close #37125
  • Loading branch information
zimulala authored Feb 6, 2023
1 parent e5477b8 commit ddaf0d7
Show file tree
Hide file tree
Showing 34 changed files with 1,504 additions and 498 deletions.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
startup --host_jvm_args=-Xmx8g
startup --host_jvm_args=-Xmx4g
startup --unlimit_coredumps

run:ci --color=yes
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,10 @@ bazel_coverage_test: failpoint-enable bazel_ci_prepare
--build_event_json_file=bazel_1.json --@io_bazel_rules_go//go/config:cover_format=go_cover --define gotags=deadlock,intest \
-- //... -//cmd/... -//tests/graceshutdown/... \
-//tests/globalkilltest/... -//tests/readonlytest/... -//br/pkg/task:task_test -//tests/realtikvtest/...
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) \
--build_event_json_file=bazel_1.json --@io_bazel_rules_go//go/config:cover_format=go_cover --define gotags=deadlock,intest,distributereorg \
-- //... -//cmd/... -//tests/graceshutdown/... \
-//tests/globalkilltest/... -//tests/readonlytest/... -//br/pkg/task:task_test -//tests/realtikvtest/...

bazel_build: bazel_ci_prepare
mkdir -p bin
Expand Down
6 changes: 6 additions & 0 deletions ddl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ go_library(
"ddl_workerpool.go",
"delete_range.go",
"delete_range_util.go",
"dist_backfilling.go",
"dist_owner.go",
"foreign_key.go",
"generated_column.go",
"index.go",
Expand Down Expand Up @@ -81,6 +83,8 @@ go_library(
"//parser/terror",
"//parser/types",
"//privilege",
"//resourcemanager/pooltask",
"//resourcemanager/util",
"//sessionctx",
"//sessionctx/binloginfo",
"//sessionctx/stmtctx",
Expand All @@ -106,6 +110,7 @@ go_library(
"//util/filter",
"//util/gcutil",
"//util/generic",
"//util/gpool/spmc",
"//util/hack",
"//util/intest",
"//util/logutil",
Expand All @@ -118,6 +123,7 @@ go_library(
"//util/slice",
"//util/sqlexec",
"//util/stringutil",
"//util/syncutil",
"//util/timeutil",
"//util/topsql",
"//util/topsql/state",
Expand Down
4 changes: 4 additions & 0 deletions ddl/attributes_sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func TestAlterTableAttributes(t *testing.T) {
// without equal
tk.MustExec(`alter table alter_t attributes " merge_option=allow ";`)
tk.MustExec(`alter table alter_t attributes " merge_option=allow , key=value ";`)

tk.MustExec("drop table alter_t")
}

func TestAlterTablePartitionAttributes(t *testing.T) {
Expand Down Expand Up @@ -134,6 +136,8 @@ PARTITION BY RANGE (c) (
require.Len(t, rows4, 1)
require.NotEqual(t, rows3[0][3], rows4[0][3])
require.NotEqual(t, rows[0][3], rows4[0][3])

tk.MustExec("drop table alter_p")
}

func TestTruncateTable(t *testing.T) {
Expand Down
Loading

0 comments on commit ddaf0d7

Please sign in to comment.