Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoanalyze failed when a table has global index, analyze version = 1 #47539

Open
L-maple opened this issue Oct 11, 2023 · 0 comments · May be fixed by #47754
Open

autoanalyze failed when a table has global index, analyze version = 1 #47539

L-maple opened this issue Oct 11, 2023 · 0 comments · May be fixed by #47754
Assignees
Labels
affects-7.5 affects-8.1 feature/developing the related feature is in development severity/major sig/planner SIG: Planner type/bug This issue is a bug.

Comments

@L-maple
Copy link
Contributor

L-maple commented Oct 11, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

set global tidb_analyze_version = 1;
use test;
CREATE TABLE t ( a int, b int, c int default 0)
  PARTITION BY RANGE (a) (
  PARTITION p0 VALUES LESS THAN (10),
  PARTITION p1 VALUES LESS THAN (20),
  PARTITION p2 VALUES LESS THAN (30),
  PARTITION p3 VALUES LESS THAN (40));
INSERT INTO t(a, b) values(1, 1), (2, 2), (3, 3), (15, 15), (25, 25), (35, 35);
ALTER TABLE t ADD UNIQUE INDEX idx(b);
set global tidb_partition_prune_mode = "dynamic";

2. What did you expect to see? (Required)

auto analyze run successfully.

3. What did you see instead (Required)

auto analyze run failed, global index should be handle specifically.
image

4. What is your TiDB version? (Required)

image
@L-maple L-maple added the type/bug This issue is a bug. label Oct 11, 2023
@jebter jebter added the sig/planner SIG: Planner label Oct 12, 2023
@Defined2014 Defined2014 added severity/major feature/developing the related feature is in development labels Oct 16, 2023
@ti-chi-bot ti-chi-bot bot added may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 labels Oct 16, 2023
@Defined2014 Defined2014 removed may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 labels Oct 16, 2023
@L-maple L-maple linked a pull request Oct 18, 2023 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.5 affects-8.1 feature/developing the related feature is in development severity/major sig/planner SIG: Planner type/bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants