Skip to content

Commit

Permalink
asyncloaddata: add table and helper functions (#41765)
Browse files Browse the repository at this point in the history
ref #40499
  • Loading branch information
lance6716 authored Mar 1, 2023
1 parent bd423ea commit 3e5518d
Show file tree
Hide file tree
Showing 4 changed files with 768 additions and 0 deletions.
30 changes: 30 additions & 0 deletions executor/asyncloaddata/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "asyncloaddata",
srcs = ["util.go"],
importpath = "github.com/pingcap/tidb/executor/asyncloaddata",
visibility = ["//visibility:public"],
deps = [
"//kv",
"//parser/terror",
"//session",
"//util/chunk",
"//util/sqlexec",
"@com_github_pingcap_errors//:errors",
"@com_github_tikv_client_go_v2//util",
],
)

go_test(
name = "asyncloaddata_test",
timeout = "short",
srcs = ["util_test.go"],
embed = [":asyncloaddata"],
flaky = True,
deps = [
"//testkit",
"//util/sqlexec",
"@com_github_stretchr_testify//require",
],
)
Loading

0 comments on commit 3e5518d

Please sign in to comment.