Skip to content

Statistics' async load loads more items than current sync load #59107

Closed

Description

@winoros

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Before #56813, take the following SQL as an example:

table t(a int, b int, cint, index idx(a, b));
select * from t where a > 1;

Both sync load and async load will load a's full stats, idx's full stats, and the NDV/NullCount info of columns b and c.

After #56813, sync load will not load the stats of b and c anymore. But we forget to modify the async load.
So as a result, b and c's NDV/NullCount will be loaded finally.
It's a mistake and we should fix it.

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

current master.

Activity

  1. 12 remaining items

  2. added a commit that references this issue on Jan 23, 2025
    dfc0035
  3. added a commit that references this issue on Mar 4, 2025
    fe5147a
  4. added a commit that references this issue on Apr 14, 2025
    00de6c1
  5. added a commit that references this issue on May 6, 2025
    263cd94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions