pingcap / pingcap/tidb

Failed to analyte table and reported ERROR 1105 (HY000)

Open
#64,319 1 comment 0 reactions 0 assignees View on GitHub
affects-8.5 sig/planner type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)
1. prepare a v7.5.6 cluster and do backup
2. restore dataset to v8.5.4
3. analyze table on v8.5.4

### 2. What did you expect to see? (Required)
succeed to analyze
### 3. What did you see instead (Required)
ERROR 1105 (HY000): [kv:1062]Duplicate entry '?' for key 'stats_histograms.PRIMARY'
### 4. What is your TiDB version? (Required)

| Release Version: v8.5.4
Edition: Enterprise
Git Commit Hash: 1366faeae8c2f5855d99352de50245da4e3a853f
Git Branch: HEAD
UTC Build Time: 2025-10-30 12:09:37
GoVersion: go1.23.12
Race Enabled: false
Check Table Before Drop: false
Store: tikv
Enterprise Extension Commit Hash: 7d43ff65ebc145bd63fa84cb368f8775be906998 |

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.