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

inconsistency explain bewteen lite-init-stats and non-lite-init-stats #54532

Closed
hawkingrei opened this issue Jul 9, 2024 · 0 comments · Fixed by #54531
Closed

inconsistency explain bewteen lite-init-stats and non-lite-init-stats #54532

hawkingrei opened this issue Jul 9, 2024 · 0 comments · Fixed by #54531
Labels
impact/inconsistency incorrect/inconsistency/inconsistent severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@hawkingrei
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t(a int);
insert into t values(1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
explain format='brief' select * from t where a in (1, 2, 3, 4, 5, 6, 7, 8)

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

the same result with lite-init-stats or non-lite-init-stats

"TableReader 0.08 root  data:Selection",
└─Selection 0.08 cop[tikv]  in(test.t.a, 1, 2, 3, 4, 5, 6, 7, 8)",
  └─TableFullScan 10.00 cop[tikv] table:t keep order:false, stats:pseudo"

3. What did you see instead (Required)

non-lite-init-stats is difference from lite-init-stats

"TableReader 8.00 root  data:Selection",
└─Selection 8.00 cop[tikv]  in(test.t.a, 1, 2, 3, 4, 5, 6, 7, 8)",
  └─TableFullScan 10.00 cop[tikv] table:t keep order:false, stats:pseudo"

4. What is your TiDB version? (Required)

@hawkingrei hawkingrei added type/bug The issue is confirmed as a bug. sig/planner SIG: Planner severity/moderate labels Jul 9, 2024
@jebter jebter added the impact/inconsistency incorrect/inconsistency/inconsistent label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/inconsistency incorrect/inconsistency/inconsistent severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants