Skip to content

Commit d4751ee

Browse files
authored
test: remove outdated tidb-instance-id in config (#410)
1 parent 4692c1e commit d4751ee

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pkg/dbutil/common.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -440,14 +440,16 @@ func GetBucketsInfo(ctx context.Context, db *sql.DB, schema, table string, table
440440

441441
for rows.Next() {
442442
var dbName, tableName, partitionName, columnName, lowerBound, upperBound sql.NullString
443-
var isIndex, bucketID, count, repeats sql.NullInt64
443+
var isIndex, bucketID, count, repeats, ndv sql.NullInt64
444444

445445
// add partiton_name in new version
446446
switch len(cols) {
447447
case 9:
448448
err = rows.Scan(&dbName, &tableName, &columnName, &isIndex, &bucketID, &count, &repeats, &lowerBound, &upperBound)
449449
case 10:
450450
err = rows.Scan(&dbName, &tableName, &partitionName, &columnName, &isIndex, &bucketID, &count, &repeats, &lowerBound, &upperBound)
451+
case 11:
452+
err = rows.Scan(&dbName, &tableName, &partitionName, &columnName, &isIndex, &bucketID, &count, &repeats, &lowerBound, &upperBound, &ndv)
451453
default:
452454
return nil, errors.New("Unknown struct for buckets info")
453455
}

tests/sync_diff_inspector/ignore_column/config.toml

-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ use-checkpoint = false
2424
# the name of the file which saves sqls used to fix different data.
2525
fix-sql-file = "/tmp/tidb_tools_test/sync_diff_inspector/fix.sql"
2626

27-
# use this tidb's statistics information to split chunk
28-
tidb-instance-id = "target-1"
29-
3027
# tables need to check.
3128
[[check-tables]]
3229
# schema name in target database.

0 commit comments

Comments
 (0)