Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#53921
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
hawkingrei committed Jul 5, 2024
1 parent 660aebc commit 800c7cd
Show file tree
Hide file tree
Showing 6 changed files with 6,414 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/explaintest/r/index_merge.result
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,11 @@ CTE_0 1.80 root Recursive CTE
└─CTETable_16 1.00 root Scan on CTE_0
show warnings;
Level Code Message
<<<<<<< HEAD:cmd/explaintest/r/index_merge.result
=======
Warning 1815 use_index_merge(index_merge.t_alias) is inapplicable, check whether the table(index_merge.t_alias) exists
Warning 1815 use_index_merge(index_merge.t_alias) is inapplicable, check whether the table(index_merge.t_alias) exists
>>>>>>> 2372cf828c2 (hint: avoid duplicate hints in QBHintHandler (#53921)):tests/integrationtest/r/index_merge.result
with recursive cte1 as (select 1 c1, 1 c2, 1 c3 UNION ALL select /*+ use_index_merge(t_alias) */ c1 + 1, c2 + 1, c3 + 1 from cte1 t_alias where c1 < 10 or c2 < 10 and c3 < 10) select * from cte1 order by 1;
c1 c2 c3
1 1 1
Expand Down
26 changes: 26 additions & 0 deletions pkg/planner/core/casetest/hint/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
name = "hint_test",
timeout = "short",
srcs = [
"hint_test.go",
"main_test.go",
],
data = glob(["testdata/**"]),
flaky = True,
shard_count = 8,
deps = [
"//pkg/config",
"//pkg/domain",
"//pkg/parser/model",
"//pkg/planner/util/coretestsdk",
"//pkg/sessionctx/variable",
"//pkg/testkit",
"//pkg/testkit/testdata",
"//pkg/testkit/testmain",
"//pkg/testkit/testsetup",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
],
)
Loading

0 comments on commit 800c7cd

Please sign in to comment.