Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#48522
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
time-and-fate authored and ti-chi-bot committed Apr 15, 2024
1 parent 425cda9 commit 8d9b8bd
Show file tree
Hide file tree
Showing 13 changed files with 9,767 additions and 28 deletions.
2,174 changes: 2,174 additions & 0 deletions pkg/planner/core/integration_test.go

Large diffs are not rendered by default.

436 changes: 436 additions & 0 deletions pkg/planner/core/testdata/index_merge_suite_out.json

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions pkg/util/ranger/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "ranger",
srcs = [
"checker.go",
"detacher.go",
"points.go",
"ranger.go",
"types.go",
],
importpath = "github.com/pingcap/tidb/pkg/util/ranger",
visibility = ["//visibility:public"],
deps = [
"//pkg/errno",
"//pkg/expression",
"//pkg/kv",
"//pkg/parser/ast",
"//pkg/parser/charset",
"//pkg/parser/format",
"//pkg/parser/model",
"//pkg/parser/mysql",
"//pkg/parser/terror",
"//pkg/planner/util/fixcontrol",
"//pkg/sessionctx",
"//pkg/sessionctx/stmtctx",
"//pkg/types",
"//pkg/types/parser_driver",
"//pkg/util/chunk",
"//pkg/util/codec",
"//pkg/util/collate",
"//pkg/util/dbterror",
"//pkg/util/hack",
"@com_github_pingcap_errors//:errors",
],
)

go_test(
name = "ranger_test",
timeout = "short",
srcs = [
"bench_test.go",
"main_test.go",
"ranger_test.go",
"types_test.go",
],
flaky = True,
shard_count = 26,
deps = [
":ranger",
"//pkg/config",
"//pkg/domain",
"//pkg/expression",
"//pkg/parser/ast",
"//pkg/parser/model",
"//pkg/parser/mysql",
"//pkg/planner/core",
"//pkg/session",
"//pkg/sessionctx",
"//pkg/testkit",
"//pkg/testkit/testsetup",
"//pkg/types",
"//pkg/util/collate",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
],
)
Loading

0 comments on commit 8d9b8bd

Please sign in to comment.