Skip to content

Commit

Permalink
planner: move index advisor into the kernel (#55874)
Browse files Browse the repository at this point in the history
ref #12303
  • Loading branch information
qw4990 authored Sep 5, 2024
1 parent c90168e commit e9124dd
Show file tree
Hide file tree
Showing 7 changed files with 2,052 additions and 5 deletions.
8 changes: 7 additions & 1 deletion pkg/planner/indexadvisor/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "indexadvisor",
srcs = [
"algorithm.go",
"indexadvisor.go",
"model.go",
"optimizer.go",
"utils.go",
Expand All @@ -22,9 +24,11 @@ go_library(
"//pkg/sessionctx",
"//pkg/types",
"//pkg/types/parser_driver",
"//pkg/util/intest",
"//pkg/util/logutil",
"//pkg/util/parser",
"//pkg/util/set",
"@com_github_google_uuid//:uuid",
"@org_uber_go_zap//:zap",
],
)
Expand All @@ -33,11 +37,13 @@ go_test(
name = "indexadvisor_test",
timeout = "short",
srcs = [
"indexadvisor_test.go",
"indexadvisor_tpch_test.go",
"optimizer_test.go",
"utils_test.go",
],
flaky = True,
shard_count = 17,
shard_count = 32,
deps = [
":indexadvisor",
"//pkg/parser/mysql",
Expand Down
Loading

0 comments on commit e9124dd

Please sign in to comment.