Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#47568
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
hawkingrei authored and ti-chi-bot committed Oct 16, 2023
1 parent 6bf0542 commit 8c562a1
Show file tree
Hide file tree
Showing 2 changed files with 699 additions and 0 deletions.
56 changes: 56 additions & 0 deletions statistics/handle/storage/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "storage",
srcs = [
"gc.go",
"json.go",
"read.go",
"save.go",
"update.go",
],
importpath = "github.com/pingcap/tidb/statistics/handle/storage",
visibility = ["//visibility:public"],
deps = [
"//config",
"//infoschema",
"//parser/ast",
"//parser/model",
"//parser/mysql",
"//parser/terror",
"//sessionctx",
"//sessionctx/stmtctx",
"//sessionctx/variable",
"//statistics",
"//statistics/handle/cache",
"//statistics/handle/lockstats",
"//statistics/handle/util",
"//types",
"//util/chunk",
"//util/compress",
"//util/logutil",
"//util/mathutil",
"//util/memory",
"//util/sqlexec",
"@com_github_klauspost_compress//gzip",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_tipb//go-tipb",
"@com_github_tikv_client_go_v2//oracle",
"@org_uber_go_zap//:zap",
],
)

go_test(
name = "storage_test",
timeout = "short",
srcs = ["read_test.go"],
flaky = True,
deps = [
"//parser/model",
"//planner/cardinality",
"//testkit",
"//types",
"@com_github_stretchr_testify//require",
],
)
Loading

0 comments on commit 8c562a1

Please sign in to comment.