Files
tidb/pkg/executor/importer/BUILD.bazel

195 lines
6.2 KiB
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "importer",
srcs = [
"chunk_process.go",
"engine_process.go",
"import.go",
"job.go",
"kv_encode.go",
"precheck.go",
"sampler.go",
"table_import.go",
],
importpath = "github.com/pingcap/tidb/pkg/executor/importer",
visibility = ["//visibility:public"],
deps = [
"//br/pkg/streamhelper",
"//pkg/config",
"//pkg/config/kerneltype",
"//pkg/ddl/util",
"//pkg/dxf/framework/handle",
"//pkg/dxf/framework/proto",
"//pkg/dxf/framework/scheduler",
"//pkg/dxf/framework/taskexecutor/execute",
"//pkg/expression",
"//pkg/keyspace",
"//pkg/kv",
"//pkg/lightning/backend",
"//pkg/lightning/backend/encode",
"//pkg/lightning/backend/external",
"//pkg/lightning/backend/kv",
"//pkg/lightning/backend/local",
"//pkg/lightning/checkpoints",
"//pkg/lightning/common",
"//pkg/lightning/config",
"//pkg/lightning/log",
"//pkg/lightning/metric",
"//pkg/lightning/mydump",
"//pkg/lightning/verification",
"//pkg/meta/autoid",
"//pkg/meta/model",
"//pkg/metrics",
"//pkg/objstore",
"//pkg/objstore/compressedio",
"//pkg/objstore/storeapi",
"//pkg/parser",
"//pkg/parser/ast",
"//pkg/parser/format",
"//pkg/parser/mysql",
"//pkg/parser/terror",
"//pkg/planner/core",
"//pkg/planner/planctx",
"//pkg/planner/util",
"//pkg/sessionctx",
"//pkg/sessionctx/vardef",
"//pkg/sessionctx/variable",
"//pkg/sessiontxn",
"//pkg/statistics/handle",
"//pkg/store",
"//pkg/table",
"//pkg/table/tables",
"//pkg/tablecodec",
"//pkg/types",
"//pkg/util",
"//pkg/util/cdcutil",
"//pkg/util/chunk",
"//pkg/util/context",
"//pkg/util/cpu",
"//pkg/util/dbterror",
"//pkg/util/dbterror/exeerrors",
"//pkg/util/dbterror/plannererrors",
"//pkg/util/etcd",
"//pkg/util/filter",
"//pkg/util/intest",
"//pkg/util/logutil",
"//pkg/util/naming",
"//pkg/util/promutil",
"//pkg/util/sem/compat",
"//pkg/util/sqlexec",
"//pkg/util/sqlkiller",
"//pkg/util/stringutil",
"//pkg/util/syncutil",
"@com_github_docker_go_units//:go-units",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_log//:log",
"@com_github_prometheus_client_golang//prometheus",
"@com_github_tikv_client_go_v2//tikv",
"@com_github_tikv_client_go_v2//util",
"@com_github_tikv_pd_client//:client",
"@com_github_tikv_pd_client//pkg/caller",
"@io_etcd_go_etcd_client_v3//:client",
"@org_uber_go_atomic//:atomic",
"@org_uber_go_multierr//:multierr",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "importer_test",
timeout = "short",
srcs = [
"chunk_process_testkit_test.go",
"import_test.go",
"importer_testkit_test.go",
"job_test.go",
"kv_encode_test.go",
"main_test.go",
"precheck_test.go",
"sampler_test.go",
"table_import_test.go",
"table_import_testkit_test.go",
],
embed = [":importer"],
flaky = True,
race = "on",
shard_count = 33,
deps = [
"//br/pkg/mock",
"//br/pkg/streamhelper",
"//pkg/config",
"//pkg/config/kerneltype",
"//pkg/ddl",
"//pkg/dxf/framework/handle",
"//pkg/dxf/framework/proto",
"//pkg/dxf/framework/taskexecutor/execute",
"//pkg/dxf/framework/testutil",
"//pkg/expression",
"//pkg/infoschema",
"//pkg/keyspace",
"//pkg/kv",
"//pkg/lightning/backend/encode",
"//pkg/lightning/backend/external",
"//pkg/lightning/backend/kv",
"//pkg/lightning/backend/local",
"//pkg/lightning/checkpoints",
"//pkg/lightning/common",
"//pkg/lightning/config",
"//pkg/lightning/log",
"//pkg/lightning/metric",
"//pkg/lightning/mydump",
"//pkg/lightning/verification",
"//pkg/meta/autoid",
"//pkg/meta/model",
"//pkg/metrics",
"//pkg/parser",
"//pkg/parser/ast",
"//pkg/parser/mysql",
"//pkg/planner/core",
"//pkg/planner/core/base",
"//pkg/planner/core/operator/physicalop",
"//pkg/planner/core/resolve",
"//pkg/planner/util",
"//pkg/session",
"//pkg/sessionctx/vardef",
"//pkg/table/tables",
"//pkg/tablecodec",
"//pkg/testkit",
"//pkg/testkit/testfailpoint",
"//pkg/testkit/testsetup",
"//pkg/types",
"//pkg/util",
"//pkg/util/cdcutil",
"//pkg/util/chunk",
"//pkg/util/dbterror/exeerrors",
"//pkg/util/dbterror/plannererrors",
"//pkg/util/etcd",
"//pkg/util/logutil",
"//pkg/util/mock",
"//pkg/util/promutil",
"//pkg/util/syncutil",
"@com_github_docker_go_units//:go-units",
"@com_github_google_uuid//:uuid",
"@com_github_johannesboyne_gofakes3//:gofakes3",
"@com_github_johannesboyne_gofakes3//backend/s3mem",
"@com_github_ngaut_pools//:pools",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_prometheus_client_golang//prometheus",
"@com_github_stretchr_testify//require",
"@com_github_tikv_client_go_v2//util",
"@com_github_tikv_pd_client//:client",
"@com_github_tikv_pd_client//opt",
"@com_github_tikv_pd_client//pkg/caller",
"@io_etcd_go_etcd_client_v3//:client",
"@io_etcd_go_etcd_server_v3//embed",
"@io_etcd_go_etcd_tests_v3//integration",
"@org_uber_go_goleak//:goleak",
"@org_uber_go_mock//gomock",
"@org_uber_go_zap//:zap",
],
)