-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
BUILD.bazel
186 lines (184 loc) · 5.7 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "importccl",
srcs = [
"exportcsv.go",
"import_processor.go",
"import_stmt.go",
"import_table_creation.go",
"read_import_avro.go",
"read_import_base.go",
"read_import_csv.go",
"read_import_mysql.go",
"read_import_mysqlout.go",
"read_import_pgcopy.go",
"read_import_pgdump.go",
"read_import_workload.go",
],
importpath = "github.com/cockroachdb/cockroach/pkg/ccl/importccl",
visibility = ["//visibility:public"],
deps = [
"//pkg/ccl/backupccl",
"//pkg/ccl/storageccl",
"//pkg/ccl/utilccl",
"//pkg/clusterversion",
"//pkg/col/coldata",
"//pkg/jobs",
"//pkg/jobs/jobspb",
"//pkg/jobs/jobsprotectedts",
"//pkg/keys",
"//pkg/kv",
"//pkg/kv/kvserver/kvserverbase",
"//pkg/kv/kvserver/protectedts",
"//pkg/roachpb",
"//pkg/security",
"//pkg/server/telemetry",
"//pkg/settings/cluster",
"//pkg/sql",
"//pkg/sql/catalog",
"//pkg/sql/catalog/catalogkv",
"//pkg/sql/catalog/colinfo",
"//pkg/sql/catalog/descpb",
"//pkg/sql/catalog/descs",
"//pkg/sql/catalog/resolver",
"//pkg/sql/catalog/tabledesc",
"//pkg/sql/catalog/typedesc",
"//pkg/sql/execinfra",
"//pkg/sql/execinfrapb",
"//pkg/sql/gcjob",
"//pkg/sql/lexbase:lex",
"//pkg/sql/parser",
"//pkg/sql/pgwire/pgcode",
"//pkg/sql/pgwire/pgerror",
"//pkg/sql/privilege",
"//pkg/sql/row",
"//pkg/sql/rowenc",
"//pkg/sql/rowexec",
"//pkg/sql/schemaexpr",
"//pkg/sql/sem/tree",
"//pkg/sql/sessiondata",
"//pkg/sql/types",
"//pkg/storage/cloud",
"//pkg/storage/cloudimpl",
"//pkg/util",
"//pkg/util/bufalloc",
"//pkg/util/ctxgroup",
"//pkg/util/encoding/csv",
"//pkg/util/errorutil/unimplemented",
"//pkg/util/hlc",
"//pkg/util/humanizeutil",
"//pkg/util/log",
"//pkg/util/protoutil",
"//pkg/util/retry",
"//pkg/util/timeutil",
"//pkg/util/timeutil/pgdate",
"//pkg/util/tracing",
"//pkg/util/uuid",
"//pkg/workload",
"//vendor/github.com/cockroachdb/apd/v2:apd",
"//vendor/github.com/cockroachdb/errors",
"//vendor/github.com/lib/pq/oid",
"//vendor/github.com/linkedin/goavro/v2:goavro",
"//vendor/vitess.io/vitess/go/sqltypes",
"//vendor/vitess.io/vitess/go/vt/sqlparser",
],
)
go_test(
name = "importccl_test",
srcs = [
"bench_test.go",
"client_import_test.go",
"csv_internal_test.go",
"csv_testdata_helpers_test.go",
"exportcsv_test.go",
"import_into_test.go",
"import_processor_test.go",
"import_stmt_test.go",
"main_test.go",
"mysql_testdata_helpers_test.go",
"pg_testdata_helpers_test.go",
"read_import_avro_test.go",
"read_import_base_test.go",
"read_import_mysql_test.go",
"read_import_pgdump_test.go",
"testutils_test.go",
],
data = glob(["testdata/**"]),
embed = [":importccl"],
shard_count = 16,
deps = [
"//pkg/base",
"//pkg/blobs",
"//pkg/ccl/backupccl",
"//pkg/ccl/storageccl",
"//pkg/ccl/utilccl",
"//pkg/ccl/workloadccl/format",
"//pkg/config",
"//pkg/config/zonepb",
"//pkg/jobs",
"//pkg/jobs/jobspb",
"//pkg/keys",
"//pkg/kv",
"//pkg/kv/kvserver",
"//pkg/kv/kvserver/kvserverbase",
"//pkg/roachpb",
"//pkg/security",
"//pkg/security/securitytest",
"//pkg/server",
"//pkg/settings/cluster",
"//pkg/sql",
"//pkg/sql/catalog/catalogkv",
"//pkg/sql/catalog/descpb",
"//pkg/sql/catalog/tabledesc",
"//pkg/sql/distsql",
"//pkg/sql/execinfra",
"//pkg/sql/execinfrapb",
"//pkg/sql/gcjob",
"//pkg/sql/parser",
"//pkg/sql/pgwire/pgcode",
"//pkg/sql/row",
"//pkg/sql/rowenc",
"//pkg/sql/rowexec",
"//pkg/sql/schemaexpr",
"//pkg/sql/sem/tree",
"//pkg/sql/sessiondata",
"//pkg/sql/stats",
"//pkg/sql/tests",
"//pkg/sql/types",
"//pkg/storage",
"//pkg/storage/cloud",
"//pkg/storage/cloudimpl",
"//pkg/testutils",
"//pkg/testutils/jobutils",
"//pkg/testutils/serverutils",
"//pkg/testutils/skip",
"//pkg/testutils/sqlutils",
"//pkg/testutils/testcluster",
"//pkg/util",
"//pkg/util/ctxgroup",
"//pkg/util/envutil",
"//pkg/util/hlc",
"//pkg/util/leaktest",
"//pkg/util/log",
"//pkg/util/protoutil",
"//pkg/util/randutil",
"//pkg/util/retry",
"//pkg/util/syncutil",
"//pkg/util/timeutil",
"//pkg/workload",
"//pkg/workload/bank",
"//pkg/workload/tpcc",
"//pkg/workload/workloadsql",
"//vendor/github.com/cockroachdb/errors",
"//vendor/github.com/cockroachdb/pebble",
"//vendor/github.com/go-sql-driver/mysql",
"//vendor/github.com/gogo/protobuf/proto",
"//vendor/github.com/jackc/pgx",
"//vendor/github.com/kr/pretty",
"//vendor/github.com/lib/pq",
"//vendor/github.com/linkedin/goavro/v2:goavro",
"//vendor/github.com/stretchr/testify/assert",
"//vendor/github.com/stretchr/testify/require",
"//vendor/vitess.io/vitess/go/vt/sqlparser",
],
)