-
Notifications
You must be signed in to change notification settings - Fork 202
Open
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
- What did you do?
The case where the upper bound of the stats_buckets statistics contains null values has not been considered.
which cause sync_diff_inspector report error
[2026/01/29 00:30:35.728 +08:00] [ERROR] [common.go:607] ["analyze values from buckets"] [column=InfoPublDate] [value=NULL] [error="strconv.ParseUint: parsing \"NULL\": invalid syntax"] [stack="github.com/pingcap/tidb-tools/pkg/dbutil.AnalyzeValuesFromBuckets\n\t/workspace/source/tidb-tools/pkg/dbutil/common.go:607\ngithub.com/pingcap/tidb-tools/sync_diff_inspector/sp litter.(*BucketIterator).produceChunks\n\t/workspace/source/tidb-tools/sync_diff_inspector/splitter/bucket.go:304"]
- What did you expect to see?
sync_diff_inspector running whitout error.
- What did you see instead?
[2026/01/29 00:30:35.728 +08:00] [ERROR] [common.go:607] ["analyze values from buckets"] [column=InfoPublDate] [value=NULL] [error="strconv.ParseUint: parsing \"NULL\": invalid syntax"] [stack="github.com/pingcap/tidb-tools/pkg/dbutil.AnalyzeValuesFromBuckets\n\t/workspace/source/tidb-tools/pkg/dbutil/common.go:607\ngithub.com/pingcap/tidb-tools/sync_diff_inspector/sp litter.(*BucketIterator).produceChunks\n\t/workspace/source/tidb-tools/sync_diff_inspector/splitter/bucket.go:304"]
- What version of TiDB are you using (
tidb-server -Vor runselect tidb_version();on TiDB)?
tidb: v7.5.7
- which tool are you using?
synddiff: v8.5.2-2-g1cf55fb
- what versionof tool are you using (
pump -Vortidb-lightning -Vorsyncer -V)?
synddiff: v8.5.2-2-g1cf55fb
Reactions are currently unavailable